@vue-godot/cli 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +112 -0
  2. package/dist/cli.d.ts +2 -0
  3. package/dist/cli.js +188 -0
  4. package/dist/create.d.ts +5 -0
  5. package/dist/create.js +77 -0
  6. package/dist/index.d.ts +29 -0
  7. package/dist/index.js +129 -0
  8. package/dist/integrate.d.ts +13 -0
  9. package/dist/integrate.js +153 -0
  10. package/package.json +37 -0
  11. package/templates/godot/.editorconfig +4 -0
  12. package/templates/godot/.gitattributes +2 -0
  13. package/templates/godot/app.tscn +12 -0
  14. package/templates/godot/icon.svg +1 -0
  15. package/templates/godot/project.godot +16 -0
  16. package/templates/typings/.gdignore +1 -0
  17. package/templates/typings/app.nodes.gen.d.ts +5 -0
  18. package/templates/typings/godot.minimal.d.ts +282 -0
  19. package/templates/typings/godot.mix.d.ts +257 -0
  20. package/templates/typings/godot.vue-components.gen.d.ts +216 -0
  21. package/templates/typings/godot.worker.d.ts +32 -0
  22. package/templates/typings/godot0.gen.d.ts +9973 -0
  23. package/templates/typings/godot1.gen.d.ts +9254 -0
  24. package/templates/typings/godot2.gen.d.ts +9279 -0
  25. package/templates/typings/godot3.gen.d.ts +9210 -0
  26. package/templates/typings/godot4.gen.d.ts +9253 -0
  27. package/templates/typings/godot5.gen.d.ts +9265 -0
  28. package/templates/typings/godot6.gen.d.ts +9508 -0
  29. package/templates/typings/godot7.gen.d.ts +9310 -0
  30. package/templates/typings/godot8.gen.d.ts +8552 -0
  31. package/templates/typings/jsb.editor.bundle.d.ts +73 -0
  32. package/templates/typings/jsb.runtime.bundle.d.ts +91 -0
  33. package/templates/vue/src/.gdignore +0 -0
  34. package/templates/vue/src/App.vue +5 -0
  35. package/templates/vue/src/env.d.ts +7 -0
  36. package/templates/vue/src/main.ts +10 -0
  37. package/templates/vue/tsconfig.json +17 -0
  38. package/templates/vue/vite.config.ts +38 -0
@@ -0,0 +1,257 @@
1
+ /// <reference no-default-lib="true"/>
2
+ declare module "godot" {
3
+ export const IntegerType: unique symbol;
4
+ export const FloatType: unique symbol;
5
+
6
+ /** A built-in type representing a method or a standalone function.
7
+ *
8
+ * @link https://docs.godotengine.org/en/4.2/classes/class_callable.html
9
+ */
10
+ interface AnyCallable {
11
+ /** Returns `true` if this [Callable] has no target to call the method on. */
12
+ is_null(): boolean
13
+
14
+ /** Returns `true` if this [Callable] is a custom callable. Custom callables are created from [method bind] or [method unbind]. In GDScript, lambda functions are also custom callables. */
15
+ is_custom(): boolean
16
+
17
+ /** Returns `true` if this [Callable] is a standard callable. This method is the opposite of [method is_custom]. Returns `false` if this callable is a lambda function. */
18
+ is_standard(): boolean
19
+
20
+ /** Returns `true` if the callable's object exists and has a valid method name assigned, or is a custom callable. */
21
+ is_valid(): boolean
22
+
23
+ /** Returns the object on which this [Callable] is called. */
24
+ get_object(): Object
25
+
26
+ /** Returns the ID of this [Callable]'s object (see [method Object.get_instance_id]). */
27
+ get_object_id(): int64
28
+
29
+ /** Returns the name of the method represented by this [Callable]. If the callable is a GDScript lambda function, returns the function's name or `"<anonymous lambda>"`. */
30
+ get_method(): StringName
31
+
32
+ /** Returns the total amount of arguments bound (or unbound) via successive [method bind] or [method unbind] calls. If the amount of arguments unbound is greater than the ones bound, this function returns a value less than zero. */
33
+ get_bound_arguments_count(): int64
34
+
35
+ /** Return the bound arguments (as long as [method get_bound_arguments_count] is greater than zero), or empty (if [method get_bound_arguments_count] is less than or equal to zero). */
36
+ get_bound_arguments(): Array
37
+
38
+ /** Returns the 32-bit hash value of this [Callable]'s object.
39
+ *
40
+ * **Note:** [Callable]s with equal content will always produce identical hash values. However, the reverse is not true. Returning identical hash values does *not* imply the callables are equal, because different callables can have identical hash values due to hash collisions. The engine uses a 32-bit hash algorithm for [method hash].
41
+ */
42
+ hash(): int64
43
+
44
+ /** Returns a copy of this [Callable] with one or more arguments bound. When called, the bound arguments are passed *after* the arguments supplied by [method call]. See also [method unbind].
45
+ *
46
+ * **Note:** When this method is chained with other similar methods, the order in which the argument list is modified is read from right to left.
47
+ */
48
+ bind(...vargargs: any[]): AnyCallable
49
+
50
+ /** Returns a copy of this [Callable] with one or more arguments bound, reading them from an array. When called, the bound arguments are passed *after* the arguments supplied by [method call]. See also [method unbind].
51
+ *
52
+ * **Note:** When this method is chained with other similar methods, the order in which the argument list is modified is read from right to left.
53
+ */
54
+ bindv(arguments_: GArray): AnyCallable
55
+
56
+ /** Returns a copy of this [Callable] with a number of arguments unbound. In other words, when the new callable is called the last few arguments supplied by the user are ignored, according to [param argcount]. The remaining arguments are passed to the callable. This allows to use the original callable in a context that attempts to pass more arguments than this callable can handle, e.g. a signal with a fixed number of arguments. See also [method bind].
57
+ *
58
+ * **Note:** When this method is chained with other similar methods, the order in which the argument list is modified is read from right to left.
59
+ *
60
+ */
61
+ unbind(argcount: int64): AnyCallable
62
+
63
+ /** Calls the method represented by this [Callable]. Arguments can be passed and should match the method's signature. */
64
+ call(...vargargs: any[]): any
65
+
66
+ /** Calls the method represented by this [Callable]. Unlike [method call], this method expects all arguments to be contained inside the [param arguments] [Array]. */
67
+ callv(arguments_: GArray): any
68
+
69
+ /** Calls the method represented by this [Callable] in deferred mode, i.e. at the end of the current frame. Arguments can be passed and should match the method's signature.
70
+ *
71
+ *
72
+ * **Note:** Deferred calls are processed at idle time. Idle time happens mainly at the end of process and physics frames. In it, deferred calls will be run until there are none left, which means you can defer calls from other deferred calls and they'll still be run in the current idle time cycle. This means you should not call a method deferred from itself (or from a method called by it), as this causes infinite recursion the same way as if you had called the method directly.
73
+ * See also [method Object.call_deferred].
74
+ */
75
+ call_deferred(...vargargs: any[]): void
76
+ }
77
+
78
+ /** A built-in type representing a signal of an [Object].
79
+ *
80
+ * @link https://docs.godotengine.org/en/4.2/classes/class_signal.html
81
+ */
82
+ interface AnySignal {
83
+ /** Returns `true` if the signal's name does not exist in its object, or the object is not valid. */
84
+ is_null(): boolean
85
+
86
+ /** Returns the object emitting this signal. */
87
+ get_object(): Object
88
+
89
+ /** Returns the ID of the object emitting this signal (see [method Object.get_instance_id]). */
90
+ get_object_id(): int64
91
+
92
+ /** Returns the name of this signal. */
93
+ get_name(): StringName
94
+
95
+ /** Returns `true` if the specified [Callable] is connected to this signal. */
96
+ is_connected(callable: AnyCallable): boolean
97
+
98
+ /** Returns an [Array] of connections for this signal. Each connection is represented as a [Dictionary] that contains three entries:
99
+ * - `signal` is a reference to this signal;
100
+ * - `callable` is a reference to the connected [Callable];
101
+ * - `flags` is a combination of [enum Object.ConnectFlags].
102
+ */
103
+ get_connections(): Array
104
+ }
105
+
106
+ interface Callable0<R = void> extends AnyCallable {
107
+ call(): R;
108
+ }
109
+
110
+ interface Callable1<T1, R = void> extends AnyCallable {
111
+ call(v1: T1): R;
112
+ }
113
+
114
+ interface Callable2<T1, T2, R = void> extends AnyCallable {
115
+ call(v1: T1, v2, T2): R;
116
+ }
117
+
118
+ interface Callable3<T1, T2, T3, R = void> extends AnyCallable {
119
+ call(v1: T1, v2: T2, v3: T3): R;
120
+ }
121
+
122
+ interface Callable4<T1, T2, T3, T4, R = void> extends AnyCallable {
123
+ call(v1: T1, v2: T2, v3: T3, v4: T4): R;
124
+ }
125
+
126
+ interface Callable5<T1, T2, T3, T4, T5, R = void> extends AnyCallable {
127
+ call(v1: T1, v2: T2, v3: T3, v4: T4, v5: T5): R;
128
+ }
129
+
130
+ interface Signal0 extends AnySignal {
131
+ connect(callable: Callable0, flags: int64 = 0): void;
132
+ disconnect(callable: Callable0): void;
133
+ is_connected(callable: Callable0): boolean;
134
+ emit(): void;
135
+
136
+ as_promise(): Promise<void>;
137
+ }
138
+
139
+ interface Signal1<T1> extends AnySignal {
140
+ connect(callable: Callable1<T1>, flags: int64 = 0): void;
141
+ disconnect(callable: Callable1<T1>): void;
142
+ is_connected(callable: Callable1<T1>): boolean;
143
+ emit(v1: T1): void;
144
+
145
+ // the first argument is used as the resolved value
146
+ as_promise(): Promise<T1>;
147
+ }
148
+
149
+ interface Signal2<T1, T2> extends AnySignal {
150
+ connect(callable: Callable2<T1, T2>, flags: int64 = 0): void;
151
+ disconnect(callable: Callable2<T1, T2>): void;
152
+ is_connected(callable: Callable2<T1, T2>): boolean;
153
+ emit(v1: T1, v2: T2): void;
154
+
155
+ // the first argument is used as the resolved value
156
+ as_promise(): Promise<T1>;
157
+ }
158
+
159
+ interface Signal3<T1, T2, T3> extends AnySignal {
160
+ connect(callable: Callable3<T1, T2, T3>, flags: int64 = 0): void;
161
+ disconnect(callable: Callable3<T1, T2, T3>): void;
162
+ is_connected(callable: Callable3<T1, T2, T3>): boolean;
163
+ emit(v1: T1, v2: T2, v3: T3): void;
164
+
165
+ // the first argument is used as the resolved value
166
+ as_promise(): Promise<T1>;
167
+ }
168
+
169
+ interface Signal4<T1, T2, T3, T4> extends AnySignal {
170
+ connect(callable: Callable4<T1, T2, T3, T4>, flags: int64 = 0): void;
171
+ disconnect(callable: Callable4<T1, T2, T3, T4>): void;
172
+ is_connected(callable: Callable4<T1, T2, T3, T4>): boolean;
173
+ emit(v1: T1, v2: T2, v3: T3, v4: T4): void;
174
+
175
+ // the first argument is used as the resolved value
176
+ as_promise(): Promise<T1>;
177
+ }
178
+
179
+ interface Signal5<T1, T2, T3, T4, T5> extends AnySignal {
180
+ connect(callable: Callable5<T1, T2, T3, T4, T5>, flags: int64 = 0): void;
181
+ disconnect(callable: Callable5<T1, T2, T3, T4, T5>): void;
182
+ is_connected(callable: Callable5<T1, T2, T3, T4, T5>): boolean;
183
+ emit(v1: T1, v2: T2, v3: T3, v4: T4, v5: T5): void;
184
+
185
+ // the first argument is used as the resolved value
186
+ as_promise(): Promise<T1>;
187
+ }
188
+
189
+ type NodePathMap = { [K in string]?: Node };
190
+
191
+ type StaticNodePath<Map extends NodePathMap> = (keyof Map & string) | {
192
+ [K in keyof Map & string]: Map[K] extends Node<infer ChildMap>
193
+ ? `${K}/${StaticNodePath<ChildMap>}`
194
+ : never
195
+ }[keyof Map & string];
196
+
197
+ type ResolveNodePath<Map extends NodePathMap, Path extends string, Default = never> = Path extends keyof Map
198
+ ? Map[Path]
199
+ : Path extends `${infer Key extends keyof Map & string}/${infer SubPath}`
200
+ ? Map[Key] extends Node<infer ChildMap>
201
+ ? ResolveNodePath<ChildMap, SubPath, Default>
202
+ : Default
203
+ : Default;
204
+
205
+ /**
206
+ * GArray elements are exposed with a subset of JavaScript's standard Array API. Array indexes are exposed as
207
+ * enumerable properties, thus if you want to perform more complex operations you can convert to a regular
208
+ * JavaScript array with [...g_array.proxy()].
209
+ */
210
+ class GArrayProxy<T> {
211
+ [Symbol.iterator](): IteratorObject<GProxyValueWrap<T>>;
212
+ /**
213
+ * Gets the length of the array. This is a number one higher than the highest index in the array.
214
+ */
215
+ get length(): number;
216
+ /**
217
+ * Removes the last element from an array and returns it.
218
+ * If the array is empty, undefined is returned and the array is not modified.
219
+ */
220
+ pop(): T | undefined;
221
+ /**
222
+ * Appends new elements to the end of an array, and returns the new length of the array.
223
+ * @param items New elements to add to the array.
224
+ */
225
+ push(...items: Array<T | GProxyValueWrap<T>>): number;
226
+ /**
227
+ * Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
228
+ * @param searchElement The value to locate in the array.
229
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
230
+ */
231
+ indexOf(searchElement: T, fromIndex?: number): number;
232
+ /**
233
+ * Determines whether an array includes a certain element, returning true or false as appropriate.
234
+ * @param searchElement The element to search for.
235
+ */
236
+ includes(searchElement: T): boolean;
237
+ toJSON(key?: any): any;
238
+ toString(): string;
239
+ [n: number]: T | GProxyValueWrap<T>; // More accurate get type blocked by https://github.com/microsoft/TypeScript/issues/43826
240
+ }
241
+
242
+ // Ideally this would be a class, but TS currently doesn't provide a way to type a class with mapped properties.
243
+ /**
244
+ * GObject entries are exposed as enumerable properties, so Object.keys(), Object.entries() etc. will work.
245
+ */
246
+ type GDictionaryProxy<T> = {
247
+ [K in keyof T & string]: T[K] | GProxyValueWrap<T[K]>; // More accurate get type blocked by https://github.com/microsoft/TypeScript/issues/43826
248
+ } & ('toString' extends keyof T ? {} : {
249
+ toString(): string;
250
+ });
251
+
252
+ type GProxyValueWrap<V> = V extends GArray<infer E>
253
+ ? GArrayProxy<E>
254
+ : V extends GDictionary<infer T>
255
+ ? GDictionaryProxy<T>
256
+ : V;
257
+ }
@@ -0,0 +1,216 @@
1
+ // AUTO-GENERATED by @vue-godot/types-gen — do not edit manually
2
+ // Augments @vue/runtime-core GlobalComponents so Volar provides
3
+ // typed props when using Godot nodes in Vue templates.
4
+
5
+ import type { AllowedComponentProps, VNodeProps } from "@vue/runtime-core"
6
+
7
+ /**
8
+ * Extracts settable (non-method) instance properties from a Godot node class.
9
+ * All keys become optional since props are optional in Vue templates.
10
+ */
11
+ type GodotProps<T> = {
12
+ [K in keyof T as T[K] extends (...args: any[]) => any ? never : K]?: T[K]
13
+ }
14
+
15
+ declare module "@vue/runtime-core" {
16
+ interface GlobalComponents {
17
+ AbstractPolygon2DEditor: new () => { $props: GodotProps<import("godot").AbstractPolygon2DEditor> & AllowedComponentProps & VNodeProps }
18
+ ActionMapEditor: new () => { $props: GodotProps<import("godot").ActionMapEditor> & AllowedComponentProps & VNodeProps }
19
+ AnchorPresetPicker: new () => { $props: GodotProps<import("godot").AnchorPresetPicker> & AllowedComponentProps & VNodeProps }
20
+ AnimationBezierTrackEdit: new () => { $props: GodotProps<import("godot").AnimationBezierTrackEdit> & AllowedComponentProps & VNodeProps }
21
+ AnimationMarkerEdit: new () => { $props: GodotProps<import("godot").AnimationMarkerEdit> & AllowedComponentProps & VNodeProps }
22
+ AnimationNodeBlendSpace1DEditor: new () => { $props: GodotProps<import("godot").AnimationNodeBlendSpace1DEditor> & AllowedComponentProps & VNodeProps }
23
+ AnimationNodeBlendSpace2DEditor: new () => { $props: GodotProps<import("godot").AnimationNodeBlendSpace2DEditor> & AllowedComponentProps & VNodeProps }
24
+ AnimationNodeBlendTreeEditor: new () => { $props: GodotProps<import("godot").AnimationNodeBlendTreeEditor> & AllowedComponentProps & VNodeProps }
25
+ AnimationNodeStateMachineEditor: new () => { $props: GodotProps<import("godot").AnimationNodeStateMachineEditor> & AllowedComponentProps & VNodeProps }
26
+ AnimationPlayerEditor: new () => { $props: GodotProps<import("godot").AnimationPlayerEditor> & AllowedComponentProps & VNodeProps }
27
+ AnimationTimelineEdit: new () => { $props: GodotProps<import("godot").AnimationTimelineEdit> & AllowedComponentProps & VNodeProps }
28
+ AnimationTrackEditor: new () => { $props: GodotProps<import("godot").AnimationTrackEditor> & AllowedComponentProps & VNodeProps }
29
+ AnimationTreeEditor: new () => { $props: GodotProps<import("godot").AnimationTreeEditor> & AllowedComponentProps & VNodeProps }
30
+ AnimationTreeNodeEditorPlugin: new () => { $props: GodotProps<import("godot").AnimationTreeNodeEditorPlugin> & AllowedComponentProps & VNodeProps }
31
+ AspectRatioContainer: new () => { $props: GodotProps<import("godot").AspectRatioContainer> & AllowedComponentProps & VNodeProps }
32
+ BackgroundProgress: new () => { $props: GodotProps<import("godot").BackgroundProgress> & AllowedComponentProps & VNodeProps }
33
+ BaseButton: new () => { $props: GodotProps<import("godot").BaseButton> & AllowedComponentProps & VNodeProps }
34
+ BoxContainer: new () => { $props: GodotProps<import("godot").BoxContainer> & AllowedComponentProps & VNodeProps }
35
+ Button: new () => { $props: GodotProps<import("godot").Button> & AllowedComponentProps & VNodeProps }
36
+ CSGShapeEditor: new () => { $props: GodotProps<import("godot").CSGShapeEditor> & AllowedComponentProps & VNodeProps }
37
+ CanvasItemEditor: new () => { $props: GodotProps<import("godot").CanvasItemEditor> & AllowedComponentProps & VNodeProps }
38
+ CanvasItemEditorViewport: new () => { $props: GodotProps<import("godot").CanvasItemEditorViewport> & AllowedComponentProps & VNodeProps }
39
+ Cast2DEditor: new () => { $props: GodotProps<import("godot").Cast2DEditor> & AllowedComponentProps & VNodeProps }
40
+ CenterContainer: new () => { $props: GodotProps<import("godot").CenterContainer> & AllowedComponentProps & VNodeProps }
41
+ CheckBox: new () => { $props: GodotProps<import("godot").CheckBox> & AllowedComponentProps & VNodeProps }
42
+ CheckButton: new () => { $props: GodotProps<import("godot").CheckButton> & AllowedComponentProps & VNodeProps }
43
+ CodeEdit: new () => { $props: GodotProps<import("godot").CodeEdit> & AllowedComponentProps & VNodeProps }
44
+ CollisionPolygon2DEditor: new () => { $props: GodotProps<import("godot").CollisionPolygon2DEditor> & AllowedComponentProps & VNodeProps }
45
+ CollisionShape2DEditor: new () => { $props: GodotProps<import("godot").CollisionShape2DEditor> & AllowedComponentProps & VNodeProps }
46
+ ColorPicker: new () => { $props: GodotProps<import("godot").ColorPicker> & AllowedComponentProps & VNodeProps }
47
+ ColorPickerButton: new () => { $props: GodotProps<import("godot").ColorPickerButton> & AllowedComponentProps & VNodeProps }
48
+ ColorRect: new () => { $props: GodotProps<import("godot").ColorRect> & AllowedComponentProps & VNodeProps }
49
+ ConnectionsDock: new () => { $props: GodotProps<import("godot").ConnectionsDock> & AllowedComponentProps & VNodeProps }
50
+ Container: new () => { $props: GodotProps<import("godot").Container> & AllowedComponentProps & VNodeProps }
51
+ Control: new () => { $props: GodotProps<import("godot").Control> & AllowedComponentProps & VNodeProps }
52
+ ControlEditorPopupButton: new () => { $props: GodotProps<import("godot").ControlEditorPopupButton> & AllowedComponentProps & VNodeProps }
53
+ ControlEditorPresetPicker: new () => { $props: GodotProps<import("godot").ControlEditorPresetPicker> & AllowedComponentProps & VNodeProps }
54
+ ControlEditorToolbar: new () => { $props: GodotProps<import("godot").ControlEditorToolbar> & AllowedComponentProps & VNodeProps }
55
+ DefaultThemeEditorPreview: new () => { $props: GodotProps<import("godot").DefaultThemeEditorPreview> & AllowedComponentProps & VNodeProps }
56
+ DockSplitContainer: new () => { $props: GodotProps<import("godot").DockSplitContainer> & AllowedComponentProps & VNodeProps }
57
+ EditorAssetLibrary: new () => { $props: GodotProps<import("godot").EditorAssetLibrary> & AllowedComponentProps & VNodeProps }
58
+ EditorAudioBus: new () => { $props: GodotProps<import("godot").EditorAudioBus> & AllowedComponentProps & VNodeProps }
59
+ EditorAudioBuses: new () => { $props: GodotProps<import("godot").EditorAudioBuses> & AllowedComponentProps & VNodeProps }
60
+ EditorAudioMeterNotches: new () => { $props: GodotProps<import("godot").EditorAudioMeterNotches> & AllowedComponentProps & VNodeProps }
61
+ EditorAutoloadSettings: new () => { $props: GodotProps<import("godot").EditorAutoloadSettings> & AllowedComponentProps & VNodeProps }
62
+ EditorBottomPanel: new () => { $props: GodotProps<import("godot").EditorBottomPanel> & AllowedComponentProps & VNodeProps }
63
+ EditorDebuggerInspector: new () => { $props: GodotProps<import("godot").EditorDebuggerInspector> & AllowedComponentProps & VNodeProps }
64
+ EditorDebuggerNode: new () => { $props: GodotProps<import("godot").EditorDebuggerNode> & AllowedComponentProps & VNodeProps }
65
+ EditorDebuggerTree: new () => { $props: GodotProps<import("godot").EditorDebuggerTree> & AllowedComponentProps & VNodeProps }
66
+ EditorExpressionEvaluator: new () => { $props: GodotProps<import("godot").EditorExpressionEvaluator> & AllowedComponentProps & VNodeProps }
67
+ EditorHelpBit: new () => { $props: GodotProps<import("godot").EditorHelpBit> & AllowedComponentProps & VNodeProps }
68
+ EditorInspector: new () => { $props: GodotProps<import("godot").EditorInspector> & AllowedComponentProps & VNodeProps }
69
+ EditorInspectorCategory: new () => { $props: GodotProps<import("godot").EditorInspectorCategory> & AllowedComponentProps & VNodeProps }
70
+ EditorLog: new () => { $props: GodotProps<import("godot").EditorLog> & AllowedComponentProps & VNodeProps }
71
+ EditorMainScreen: new () => { $props: GodotProps<import("godot").EditorMainScreen> & AllowedComponentProps & VNodeProps }
72
+ EditorNetworkProfiler: new () => { $props: GodotProps<import("godot").EditorNetworkProfiler> & AllowedComponentProps & VNodeProps }
73
+ EditorObjectSelector: new () => { $props: GodotProps<import("godot").EditorObjectSelector> & AllowedComponentProps & VNodeProps }
74
+ EditorPerformanceProfiler: new () => { $props: GodotProps<import("godot").EditorPerformanceProfiler> & AllowedComponentProps & VNodeProps }
75
+ EditorPluginSettings: new () => { $props: GodotProps<import("godot").EditorPluginSettings> & AllowedComponentProps & VNodeProps }
76
+ EditorProfiler: new () => { $props: GodotProps<import("godot").EditorProfiler> & AllowedComponentProps & VNodeProps }
77
+ EditorProperty: new () => { $props: GodotProps<import("godot").EditorProperty> & AllowedComponentProps & VNodeProps }
78
+ EditorPropertyCheck: new () => { $props: GodotProps<import("godot").EditorPropertyCheck> & AllowedComponentProps & VNodeProps }
79
+ EditorPropertyInteger: new () => { $props: GodotProps<import("godot").EditorPropertyInteger> & AllowedComponentProps & VNodeProps }
80
+ EditorPropertyLocalizableString: new () => { $props: GodotProps<import("godot").EditorPropertyLocalizableString> & AllowedComponentProps & VNodeProps }
81
+ EditorPropertyMultilineText: new () => { $props: GodotProps<import("godot").EditorPropertyMultilineText> & AllowedComponentProps & VNodeProps }
82
+ EditorPropertyPath: new () => { $props: GodotProps<import("godot").EditorPropertyPath> & AllowedComponentProps & VNodeProps }
83
+ EditorPropertyResource: new () => { $props: GodotProps<import("godot").EditorPropertyResource> & AllowedComponentProps & VNodeProps }
84
+ EditorPropertyText: new () => { $props: GodotProps<import("godot").EditorPropertyText> & AllowedComponentProps & VNodeProps }
85
+ EditorPropertyVector2i: new () => { $props: GodotProps<import("godot").EditorPropertyVector2i> & AllowedComponentProps & VNodeProps }
86
+ EditorPropertyVectorN: new () => { $props: GodotProps<import("godot").EditorPropertyVectorN> & AllowedComponentProps & VNodeProps }
87
+ EditorResourcePicker: new () => { $props: GodotProps<import("godot").EditorResourcePicker> & AllowedComponentProps & VNodeProps }
88
+ EditorRunBar: new () => { $props: GodotProps<import("godot").EditorRunBar> & AllowedComponentProps & VNodeProps }
89
+ EditorRunNative: new () => { $props: GodotProps<import("godot").EditorRunNative> & AllowedComponentProps & VNodeProps }
90
+ EditorSceneTabs: new () => { $props: GodotProps<import("godot").EditorSceneTabs> & AllowedComponentProps & VNodeProps }
91
+ EditorScriptPicker: new () => { $props: GodotProps<import("godot").EditorScriptPicker> & AllowedComponentProps & VNodeProps }
92
+ EditorSpinSlider: new () => { $props: GodotProps<import("godot").EditorSpinSlider> & AllowedComponentProps & VNodeProps }
93
+ EditorTitleBar: new () => { $props: GodotProps<import("godot").EditorTitleBar> & AllowedComponentProps & VNodeProps }
94
+ EditorToaster: new () => { $props: GodotProps<import("godot").EditorToaster> & AllowedComponentProps & VNodeProps }
95
+ EditorValidationPanel: new () => { $props: GodotProps<import("godot").EditorValidationPanel> & AllowedComponentProps & VNodeProps }
96
+ EditorVersionButton: new () => { $props: GodotProps<import("godot").EditorVersionButton> & AllowedComponentProps & VNodeProps }
97
+ EditorVisualProfiler: new () => { $props: GodotProps<import("godot").EditorVisualProfiler> & AllowedComponentProps & VNodeProps }
98
+ EditorZoomWidget: new () => { $props: GodotProps<import("godot").EditorZoomWidget> & AllowedComponentProps & VNodeProps }
99
+ EmbeddedProcess: new () => { $props: GodotProps<import("godot").EmbeddedProcess> & AllowedComponentProps & VNodeProps }
100
+ EventListenerLineEdit: new () => { $props: GodotProps<import("godot").EventListenerLineEdit> & AllowedComponentProps & VNodeProps }
101
+ FileSystemDock: new () => { $props: GodotProps<import("godot").FileSystemDock> & AllowedComponentProps & VNodeProps }
102
+ FileSystemList: new () => { $props: GodotProps<import("godot").FileSystemList> & AllowedComponentProps & VNodeProps }
103
+ FindInFilesPanel: new () => { $props: GodotProps<import("godot").FindInFilesPanel> & AllowedComponentProps & VNodeProps }
104
+ FindReplaceBar: new () => { $props: GodotProps<import("godot").FindReplaceBar> & AllowedComponentProps & VNodeProps }
105
+ FlowContainer: new () => { $props: GodotProps<import("godot").FlowContainer> & AllowedComponentProps & VNodeProps }
106
+ GameView: new () => { $props: GodotProps<import("godot").GameView> & AllowedComponentProps & VNodeProps }
107
+ GodotJSDockedPanel: new () => { $props: GodotProps<import("godot").GodotJSDockedPanel> & AllowedComponentProps & VNodeProps }
108
+ GodotJSStatisticsViewer: new () => { $props: GodotProps<import("godot").GodotJSStatisticsViewer> & AllowedComponentProps & VNodeProps }
109
+ GraphEdit: new () => { $props: GodotProps<import("godot").GraphEdit> & AllowedComponentProps & VNodeProps }
110
+ GraphEditFilter: new () => { $props: GodotProps<import("godot").GraphEditFilter> & AllowedComponentProps & VNodeProps }
111
+ GraphEditMinimap: new () => { $props: GodotProps<import("godot").GraphEditMinimap> & AllowedComponentProps & VNodeProps }
112
+ GraphElement: new () => { $props: GodotProps<import("godot").GraphElement> & AllowedComponentProps & VNodeProps }
113
+ GraphFrame: new () => { $props: GodotProps<import("godot").GraphFrame> & AllowedComponentProps & VNodeProps }
114
+ GraphNode: new () => { $props: GodotProps<import("godot").GraphNode> & AllowedComponentProps & VNodeProps }
115
+ GridContainer: new () => { $props: GodotProps<import("godot").GridContainer> & AllowedComponentProps & VNodeProps }
116
+ GridMapEditor: new () => { $props: GodotProps<import("godot").GridMapEditor> & AllowedComponentProps & VNodeProps }
117
+ GroupSettingsEditor: new () => { $props: GodotProps<import("godot").GroupSettingsEditor> & AllowedComponentProps & VNodeProps }
118
+ GroupsEditor: new () => { $props: GodotProps<import("godot").GroupsEditor> & AllowedComponentProps & VNodeProps }
119
+ HBoxContainer: new () => { $props: GodotProps<import("godot").HBoxContainer> & AllowedComponentProps & VNodeProps }
120
+ HFlowContainer: new () => { $props: GodotProps<import("godot").HFlowContainer> & AllowedComponentProps & VNodeProps }
121
+ HScrollBar: new () => { $props: GodotProps<import("godot").HScrollBar> & AllowedComponentProps & VNodeProps }
122
+ HSeparator: new () => { $props: GodotProps<import("godot").HSeparator> & AllowedComponentProps & VNodeProps }
123
+ HSlider: new () => { $props: GodotProps<import("godot").HSlider> & AllowedComponentProps & VNodeProps }
124
+ HSplitContainer: new () => { $props: GodotProps<import("godot").HSplitContainer> & AllowedComponentProps & VNodeProps }
125
+ HistoryDock: new () => { $props: GodotProps<import("godot").HistoryDock> & AllowedComponentProps & VNodeProps }
126
+ ImportDefaultsEditor: new () => { $props: GodotProps<import("godot").ImportDefaultsEditor> & AllowedComponentProps & VNodeProps }
127
+ ImportDock: new () => { $props: GodotProps<import("godot").ImportDock> & AllowedComponentProps & VNodeProps }
128
+ InspectorDock: new () => { $props: GodotProps<import("godot").InspectorDock> & AllowedComponentProps & VNodeProps }
129
+ ItemList: new () => { $props: GodotProps<import("godot").ItemList> & AllowedComponentProps & VNodeProps }
130
+ Label: new () => { $props: GodotProps<import("godot").Label> & AllowedComponentProps & VNodeProps }
131
+ LightOccluder2DEditor: new () => { $props: GodotProps<import("godot").LightOccluder2DEditor> & AllowedComponentProps & VNodeProps }
132
+ Line2DEditor: new () => { $props: GodotProps<import("godot").Line2DEditor> & AllowedComponentProps & VNodeProps }
133
+ LineEdit: new () => { $props: GodotProps<import("godot").LineEdit> & AllowedComponentProps & VNodeProps }
134
+ LinkButton: new () => { $props: GodotProps<import("godot").LinkButton> & AllowedComponentProps & VNodeProps }
135
+ LocalizationEditor: new () => { $props: GodotProps<import("godot").LocalizationEditor> & AllowedComponentProps & VNodeProps }
136
+ MarginContainer: new () => { $props: GodotProps<import("godot").MarginContainer> & AllowedComponentProps & VNodeProps }
137
+ MenuBar: new () => { $props: GodotProps<import("godot").MenuBar> & AllowedComponentProps & VNodeProps }
138
+ MenuButton: new () => { $props: GodotProps<import("godot").MenuButton> & AllowedComponentProps & VNodeProps }
139
+ MeshInstance3DEditor: new () => { $props: GodotProps<import("godot").MeshInstance3DEditor> & AllowedComponentProps & VNodeProps }
140
+ MeshLibraryEditor: new () => { $props: GodotProps<import("godot").MeshLibraryEditor> & AllowedComponentProps & VNodeProps }
141
+ MultiMeshEditor: new () => { $props: GodotProps<import("godot").MultiMeshEditor> & AllowedComponentProps & VNodeProps }
142
+ NavigationLink2DEditor: new () => { $props: GodotProps<import("godot").NavigationLink2DEditor> & AllowedComponentProps & VNodeProps }
143
+ NavigationMeshEditor: new () => { $props: GodotProps<import("godot").NavigationMeshEditor> & AllowedComponentProps & VNodeProps }
144
+ NavigationObstacle2DEditor: new () => { $props: GodotProps<import("godot").NavigationObstacle2DEditor> & AllowedComponentProps & VNodeProps }
145
+ NavigationPolygonEditor: new () => { $props: GodotProps<import("godot").NavigationPolygonEditor> & AllowedComponentProps & VNodeProps }
146
+ NinePatchRect: new () => { $props: GodotProps<import("godot").NinePatchRect> & AllowedComponentProps & VNodeProps }
147
+ Node3DEditor: new () => { $props: GodotProps<import("godot").Node3DEditor> & AllowedComponentProps & VNodeProps }
148
+ Node3DEditorViewport: new () => { $props: GodotProps<import("godot").Node3DEditorViewport> & AllowedComponentProps & VNodeProps }
149
+ Node3DEditorViewportContainer: new () => { $props: GodotProps<import("godot").Node3DEditorViewportContainer> & AllowedComponentProps & VNodeProps }
150
+ NodeDock: new () => { $props: GodotProps<import("godot").NodeDock> & AllowedComponentProps & VNodeProps }
151
+ OpenXRBindingModifierEditor: new () => { $props: GodotProps<import("godot").OpenXRBindingModifierEditor> & AllowedComponentProps & VNodeProps }
152
+ OpenXRInteractionProfileEditor: new () => { $props: GodotProps<import("godot").OpenXRInteractionProfileEditor> & AllowedComponentProps & VNodeProps }
153
+ OpenXRInteractionProfileEditorBase: new () => { $props: GodotProps<import("godot").OpenXRInteractionProfileEditorBase> & AllowedComponentProps & VNodeProps }
154
+ OptionButton: new () => { $props: GodotProps<import("godot").OptionButton> & AllowedComponentProps & VNodeProps }
155
+ Panel: new () => { $props: GodotProps<import("godot").Panel> & AllowedComponentProps & VNodeProps }
156
+ PanelContainer: new () => { $props: GodotProps<import("godot").PanelContainer> & AllowedComponentProps & VNodeProps }
157
+ Path2DEditor: new () => { $props: GodotProps<import("godot").Path2DEditor> & AllowedComponentProps & VNodeProps }
158
+ Polygon2DEditor: new () => { $props: GodotProps<import("godot").Polygon2DEditor> & AllowedComponentProps & VNodeProps }
159
+ Polygon3DEditor: new () => { $props: GodotProps<import("godot").Polygon3DEditor> & AllowedComponentProps & VNodeProps }
160
+ ProgressBar: new () => { $props: GodotProps<import("godot").ProgressBar> & AllowedComponentProps & VNodeProps }
161
+ ProgressDialog: new () => { $props: GodotProps<import("godot").ProgressDialog> & AllowedComponentProps & VNodeProps }
162
+ ProjectExportTextureFormatError: new () => { $props: GodotProps<import("godot").ProjectExportTextureFormatError> & AllowedComponentProps & VNodeProps }
163
+ QuickOpenResultContainer: new () => { $props: GodotProps<import("godot").QuickOpenResultContainer> & AllowedComponentProps & VNodeProps }
164
+ Range: new () => { $props: GodotProps<import("godot").Range> & AllowedComponentProps & VNodeProps }
165
+ ReferenceRect: new () => { $props: GodotProps<import("godot").ReferenceRect> & AllowedComponentProps & VNodeProps }
166
+ ReplicationEditor: new () => { $props: GodotProps<import("godot").ReplicationEditor> & AllowedComponentProps & VNodeProps }
167
+ ResourcePreloaderEditor: new () => { $props: GodotProps<import("godot").ResourcePreloaderEditor> & AllowedComponentProps & VNodeProps }
168
+ RichTextLabel: new () => { $props: GodotProps<import("godot").RichTextLabel> & AllowedComponentProps & VNodeProps }
169
+ SceneTreeDock: new () => { $props: GodotProps<import("godot").SceneTreeDock> & AllowedComponentProps & VNodeProps }
170
+ SceneTreeEditor: new () => { $props: GodotProps<import("godot").SceneTreeEditor> & AllowedComponentProps & VNodeProps }
171
+ ScreenSelect: new () => { $props: GodotProps<import("godot").ScreenSelect> & AllowedComponentProps & VNodeProps }
172
+ ScriptEditor: new () => { $props: GodotProps<import("godot").ScriptEditor> & AllowedComponentProps & VNodeProps }
173
+ ScriptEditorBase: new () => { $props: GodotProps<import("godot").ScriptEditorBase> & AllowedComponentProps & VNodeProps }
174
+ ScrollBar: new () => { $props: GodotProps<import("godot").ScrollBar> & AllowedComponentProps & VNodeProps }
175
+ ScrollContainer: new () => { $props: GodotProps<import("godot").ScrollContainer> & AllowedComponentProps & VNodeProps }
176
+ SectionedInspector: new () => { $props: GodotProps<import("godot").SectionedInspector> & AllowedComponentProps & VNodeProps }
177
+ Separator: new () => { $props: GodotProps<import("godot").Separator> & AllowedComponentProps & VNodeProps }
178
+ ShaderFileEditor: new () => { $props: GodotProps<import("godot").ShaderFileEditor> & AllowedComponentProps & VNodeProps }
179
+ ShaderGlobalsEditor: new () => { $props: GodotProps<import("godot").ShaderGlobalsEditor> & AllowedComponentProps & VNodeProps }
180
+ SizeFlagPresetPicker: new () => { $props: GodotProps<import("godot").SizeFlagPresetPicker> & AllowedComponentProps & VNodeProps }
181
+ Skeleton2DEditor: new () => { $props: GodotProps<import("godot").Skeleton2DEditor> & AllowedComponentProps & VNodeProps }
182
+ Slider: new () => { $props: GodotProps<import("godot").Slider> & AllowedComponentProps & VNodeProps }
183
+ SpinBox: new () => { $props: GodotProps<import("godot").SpinBox> & AllowedComponentProps & VNodeProps }
184
+ SplitContainer: new () => { $props: GodotProps<import("godot").SplitContainer> & AllowedComponentProps & VNodeProps }
185
+ SplitContainerDragger: new () => { $props: GodotProps<import("godot").SplitContainerDragger> & AllowedComponentProps & VNodeProps }
186
+ Sprite2DEditor: new () => { $props: GodotProps<import("godot").Sprite2DEditor> & AllowedComponentProps & VNodeProps }
187
+ SpriteFramesEditor: new () => { $props: GodotProps<import("godot").SpriteFramesEditor> & AllowedComponentProps & VNodeProps }
188
+ SubViewportContainer: new () => { $props: GodotProps<import("godot").SubViewportContainer> & AllowedComponentProps & VNodeProps }
189
+ TabBar: new () => { $props: GodotProps<import("godot").TabBar> & AllowedComponentProps & VNodeProps }
190
+ TabContainer: new () => { $props: GodotProps<import("godot").TabContainer> & AllowedComponentProps & VNodeProps }
191
+ TextEdit: new () => { $props: GodotProps<import("godot").TextEdit> & AllowedComponentProps & VNodeProps }
192
+ TextureButton: new () => { $props: GodotProps<import("godot").TextureButton> & AllowedComponentProps & VNodeProps }
193
+ TextureProgressBar: new () => { $props: GodotProps<import("godot").TextureProgressBar> & AllowedComponentProps & VNodeProps }
194
+ TextureRect: new () => { $props: GodotProps<import("godot").TextureRect> & AllowedComponentProps & VNodeProps }
195
+ ThemeEditor: new () => { $props: GodotProps<import("godot").ThemeEditor> & AllowedComponentProps & VNodeProps }
196
+ ThemeEditorPreview: new () => { $props: GodotProps<import("godot").ThemeEditorPreview> & AllowedComponentProps & VNodeProps }
197
+ ThemeItemImportTree: new () => { $props: GodotProps<import("godot").ThemeItemImportTree> & AllowedComponentProps & VNodeProps }
198
+ ThemeTypeEditor: new () => { $props: GodotProps<import("godot").ThemeTypeEditor> & AllowedComponentProps & VNodeProps }
199
+ TileAtlasView: new () => { $props: GodotProps<import("godot").TileAtlasView> & AllowedComponentProps & VNodeProps }
200
+ TileMapLayerEditor: new () => { $props: GodotProps<import("godot").TileMapLayerEditor> & AllowedComponentProps & VNodeProps }
201
+ TileSetAtlasSourceEditor: new () => { $props: GodotProps<import("godot").TileSetAtlasSourceEditor> & AllowedComponentProps & VNodeProps }
202
+ TileSetEditor: new () => { $props: GodotProps<import("godot").TileSetEditor> & AllowedComponentProps & VNodeProps }
203
+ TileSetScenesCollectionSourceEditor: new () => { $props: GodotProps<import("godot").TileSetScenesCollectionSourceEditor> & AllowedComponentProps & VNodeProps }
204
+ Tree: new () => { $props: GodotProps<import("godot").Tree> & AllowedComponentProps & VNodeProps }
205
+ VBoxContainer: new () => { $props: GodotProps<import("godot").VBoxContainer> & AllowedComponentProps & VNodeProps }
206
+ VFlowContainer: new () => { $props: GodotProps<import("godot").VFlowContainer> & AllowedComponentProps & VNodeProps }
207
+ VScrollBar: new () => { $props: GodotProps<import("godot").VScrollBar> & AllowedComponentProps & VNodeProps }
208
+ VSeparator: new () => { $props: GodotProps<import("godot").VSeparator> & AllowedComponentProps & VNodeProps }
209
+ VSlider: new () => { $props: GodotProps<import("godot").VSlider> & AllowedComponentProps & VNodeProps }
210
+ VSplitContainer: new () => { $props: GodotProps<import("godot").VSplitContainer> & AllowedComponentProps & VNodeProps }
211
+ VideoStreamPlayer: new () => { $props: GodotProps<import("godot").VideoStreamPlayer> & AllowedComponentProps & VNodeProps }
212
+ ViewportNavigationControl: new () => { $props: GodotProps<import("godot").ViewportNavigationControl> & AllowedComponentProps & VNodeProps }
213
+ ViewportRotationControl: new () => { $props: GodotProps<import("godot").ViewportRotationControl> & AllowedComponentProps & VNodeProps }
214
+ WindowWrapper: new () => { $props: GodotProps<import("godot").WindowWrapper> & AllowedComponentProps & VNodeProps }
215
+ }
216
+ }
@@ -0,0 +1,32 @@
1
+
2
+ declare module "godot.worker" {
3
+ import { Object as GDObject } from "godot";
4
+
5
+ class JSWorker {
6
+ constructor(path: string);
7
+
8
+ postMessage(message: any): void;
9
+ terminate(): void;
10
+
11
+ onready?: () => void;
12
+ onmessage?: (message: any) => void;
13
+
14
+ //TODO not implemented yet
15
+ onerror?: (error: any) => void;
16
+
17
+ ontransfer?: (obj: GDObject) => void;
18
+ }
19
+
20
+ // only available in worker scripts
21
+ const JSWorkerParent: {
22
+ onmessage?: (message: any) => void,
23
+
24
+ close(): void,
25
+
26
+ transfer(obj: GDObject): void,
27
+
28
+ postMessage(message: any): void,
29
+
30
+ } | undefined;
31
+
32
+ }