@@ -1,4 +1,5 @@
|
||||
import type * as Godot from "godot"
|
||||
import type { PascalToCamel } from "./utils.js"
|
||||
|
||||
|
||||
type NodeClass = {
|
||||
@@ -15,7 +16,6 @@ type GodotIntrinsicElements = {
|
||||
}
|
||||
}
|
||||
|
||||
type PascalToCamel<S extends string> = S extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : S
|
||||
type PropsFromInstance<T> = {
|
||||
// biome-ignore lint/complexity/noBannedTypes: it's completely fine
|
||||
[K in keyof T as T[K] extends Function ? never : K]?: T[K]
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from "./jsx.js"
|
||||
export * as JSX from "./JSX.js"
|
||||
export * as Reconciler from "./Reconciler.js"
|
||||
export * as Renderer from "./Renderer.js"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
export type PascalToCamel<S extends string> = S extends `${infer F}${infer R}` ? `${Lowercase<F>}${R}` : S
|
||||
|
||||
export const isRecordOrArray = (input: unknown): input is { [x: PropertyKey]: unknown } =>
|
||||
typeof input === "object" && input !== null
|
||||
// biome-ignore lint/complexity/noBannedTypes: it's completely fine
|
||||
|
||||
Reference in New Issue
Block a user