Work
Some checks failed
Lint / lint (push) Failing after 9s

This commit is contained in:
Julien Valverdé
2025-12-29 18:57:25 +01:00
parent 7032432e74
commit fba9ca6193
3 changed files with 4 additions and 2 deletions

View File

@@ -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]

View File

@@ -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"

View File

@@ -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