Fix
Some checks failed
Lint / lint (push) Failing after 10s

This commit is contained in:
Julien Valverdé
2026-01-02 03:38:32 +01:00
parent 54c6466127
commit 76b19de46a
5 changed files with 3 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ const VFlowContainer = Component.make(Godot.VFlowContainer)
const Label = Component.make(Godot.Label) const Label = Component.make(Godot.Label)
const TextEdit = Component.make(Godot.TextEdit) const TextEdit = Component.make(Godot.TextEdit)
const Button = Component.make(Godot.Button) const Button = Component.make(Godot.Button)
const Test = Component. const TestUi1Scene = Component.fromScene("res://src/TestUi1.tscn")
export function TestUi1Component() { export function TestUi1Component() {
const [text, setText] = useState("Default text") const [text, setText] = useState("Default text")

View File

@@ -1,5 +0,0 @@
declare module "godot" {
interface ResourceTypes {
"res://icon.svg": CompressedTexture2D;
}
}

View File

@@ -45,7 +45,7 @@ export declare namespace fromScene {
export const fromScene = <A extends fromScene.SceneNames>( export const fromScene = <A extends fromScene.SceneNames>(
name: A name: A
): Component<Godot.ResourceTypes[A]> => Object.setPrototypeOf( ): Component<Godot.ResourceTypes[A] extends Godot.PackedScene<infer T> ? T : never> => Object.setPrototypeOf(
Object.assign( Object.assign(
(props: Props<Godot.ResourceTypes[A]>) => React.createElement("element", { ...props }), (props: Props<Godot.ResourceTypes[A]>) => React.createElement("element", { ...props }),
{ displayName: name }, { displayName: name },

View File

@@ -31,5 +31,5 @@
"sourceMap": true "sourceMap": true
}, },
"include": ["./src", "./typings", "./gen"] "include": ["./src", "./typings"]
} }