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