@defold-typescript/library-types 0.22.0 → 0.23.0
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.
- package/api-doc/{bridge.bridge.json → bridge.json} +749 -844
- package/api-doc/decore.json +22 -22
- package/api-doc/druid.json +195 -1790
- package/api-doc/event.json +1074 -0
- package/api-doc/immutable.json +65 -0
- package/api-doc/lang.json +528 -0
- package/api-doc/{event.event.json → log.json} +96 -101
- package/api-doc/narrator.json +647 -0
- package/api-doc/proto.json +995 -0
- package/api-doc/saver.saver.json +713 -263
- package/api-doc/saver.storage.json +282 -52
- package/api-doc/squid.json +846 -0
- package/api-doc/tweener.json +277 -0
- package/generated/bridge.d.ts +468 -0
- package/generated/decore.d.ts +36 -36
- package/generated/druid.d.ts +137 -443
- package/generated/event.d.ts +318 -0
- package/generated/immutable.d.ts +13 -0
- package/generated/lang.d.ts +101 -0
- package/generated/log.d.ts +36 -0
- package/generated/narrator.d.ts +121 -0
- package/generated/proto.d.ts +146 -0
- package/generated/saver.saver.d.ts +287 -42
- package/generated/saver.storage.d.ts +77 -14
- package/generated/squid.d.ts +127 -0
- package/generated/tweener.d.ts +42 -0
- package/library-classification.json +0 -71
- package/library-targets.json +0 -66
- package/luals-targets.json +114 -0
- package/package.json +4 -33
- package/script-api-targets.json +15 -0
- package/scripts/__snapshots__/parse-luals.test.ts.snap +340 -75
- package/scripts/apply-luals-overrides.ts +63 -0
- package/scripts/emit-library-dts.ts +84 -3
- package/scripts/lower-api-doc.ts +48 -16
- package/scripts/luals-fidelity.ts +7 -0
- package/scripts/map-luals-types.ts +34 -1
- package/scripts/parse-luals.ts +423 -18
- package/scripts/sync-luals-types.ts +15 -1
- package/scripts/sync-script-api-types.ts +368 -0
- package/api-doc/immutable.immutable.json +0 -63
- package/api-doc/lang.lang.json +0 -411
- package/api-doc/log.log.json +0 -50
- package/api-doc/narrator.narrator.json +0 -150
- package/api-doc/proto.proto.json +0 -355
- package/api-doc/squid.squid.json +0 -660
- package/api-doc/tweener.tweener.json +0 -419
- package/generated/bridge.bridge.d.ts +0 -533
- package/generated/event.event.d.ts +0 -54
- package/generated/immutable.immutable.d.ts +0 -13
- package/generated/lang.lang.d.ts +0 -33
- package/generated/log.log.d.ts +0 -40
- package/generated/narrator.narrator.d.ts +0 -66
- package/generated/proto.proto.d.ts +0 -36
- package/generated/squid.squid.d.ts +0 -106
- package/generated/tweener.tweener.d.ts +0 -151
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/** @noResolution */
|
|
2
|
+
declare module 'squid.squid' {
|
|
3
|
+
/**
|
|
4
|
+
* @(1) trace logging level constant
|
|
5
|
+
*/
|
|
6
|
+
export const TRACE: number;
|
|
7
|
+
/**
|
|
8
|
+
* @(2) debug logging level constant
|
|
9
|
+
*/
|
|
10
|
+
export const DEBUG: number;
|
|
11
|
+
/**
|
|
12
|
+
* @(3) info logging level constant
|
|
13
|
+
*/
|
|
14
|
+
export const INFO: number;
|
|
15
|
+
/**
|
|
16
|
+
* @(4) warning logging level constant
|
|
17
|
+
*/
|
|
18
|
+
export const WARN: number;
|
|
19
|
+
/**
|
|
20
|
+
* @(5) error logging level constant
|
|
21
|
+
*/
|
|
22
|
+
export const ERROR: number;
|
|
23
|
+
/**
|
|
24
|
+
* @Public list of allowed tags (pairs tag[string] - is_allowed[boolean])
|
|
25
|
+
*/
|
|
26
|
+
export const ALLOWLIST: LuaTable;
|
|
27
|
+
interface SquidInstance {
|
|
28
|
+
log(message: string | number, level: number, data?: unknown): void;
|
|
29
|
+
trace(message: string | number, data?: unknown): void;
|
|
30
|
+
debug(message: string | number, data?: unknown): void;
|
|
31
|
+
info(message: string | number, data?: unknown): void;
|
|
32
|
+
warn(message: string | number, data?: unknown): void;
|
|
33
|
+
error(message: string | number, data?: unknown): void;
|
|
34
|
+
set_allowed(this_tag?: string, this_is_allowed?: boolean): void;
|
|
35
|
+
save_logs(): void;
|
|
36
|
+
init(): void;
|
|
37
|
+
final(): void;
|
|
38
|
+
}
|
|
39
|
+
interface SquidConfig {
|
|
40
|
+
app_catalog: string;
|
|
41
|
+
log_file_name: string;
|
|
42
|
+
log_file_extension: string;
|
|
43
|
+
is_enabled: boolean;
|
|
44
|
+
is_enabled_in_release: boolean;
|
|
45
|
+
is_printing: boolean;
|
|
46
|
+
is_saving: boolean;
|
|
47
|
+
is_adding_timestamp: boolean;
|
|
48
|
+
is_using_allowlist: boolean;
|
|
49
|
+
days_to_delete_logs: number;
|
|
50
|
+
min_log_level: number;
|
|
51
|
+
unsaved_logs_buffer: number;
|
|
52
|
+
max_data_length: number;
|
|
53
|
+
max_data_depth: number;
|
|
54
|
+
is_printing_crashes: boolean;
|
|
55
|
+
is_saving_crashes: boolean;
|
|
56
|
+
crash_file_name: string;
|
|
57
|
+
crash_file_extension: string;
|
|
58
|
+
}
|
|
59
|
+
interface SystemHelper {
|
|
60
|
+
is_linux: boolean;
|
|
61
|
+
is_mobile: boolean;
|
|
62
|
+
is_debug: boolean;
|
|
63
|
+
}
|
|
64
|
+
interface TableToString {
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* ------
|
|
68
|
+
* ------
|
|
69
|
+
* ------
|
|
70
|
+
* ------
|
|
71
|
+
* Initialize Squid for error and crash handling and logging
|
|
72
|
+
*/
|
|
73
|
+
export function init(this: void): void;
|
|
74
|
+
/**
|
|
75
|
+
* Set if logs should be saved to file
|
|
76
|
+
*/
|
|
77
|
+
export function set_allowed(this: void, tag: string, is_allowed: boolean): void;
|
|
78
|
+
/**
|
|
79
|
+
* Log TRACE level message with optional data and tag
|
|
80
|
+
*/
|
|
81
|
+
export function trace(this: void, message: string | number, data_or_tag?: unknown, tag?: string): void;
|
|
82
|
+
/**
|
|
83
|
+
* Log DEBUG level message with optional data and tag
|
|
84
|
+
*/
|
|
85
|
+
export function debug(this: void, message: string | number, data_or_tag?: unknown, tag?: string): void;
|
|
86
|
+
/**
|
|
87
|
+
* Log INFO level message with optional data and tag
|
|
88
|
+
*/
|
|
89
|
+
export function info(this: void, message: string | number, data_or_tag?: unknown, tag?: string): void;
|
|
90
|
+
/**
|
|
91
|
+
* Log WARNING level message with optional data and tag
|
|
92
|
+
*/
|
|
93
|
+
export function warn(this: void, message: string | number, data_or_tag?: unknown, tag?: string): void;
|
|
94
|
+
/**
|
|
95
|
+
* Log ERROR level message with optional data and tag
|
|
96
|
+
*/
|
|
97
|
+
export function error(this: void, message: string | number, data_or_tag?: unknown, tag?: string): void;
|
|
98
|
+
/**
|
|
99
|
+
* Log message with provided level, message, data and tag
|
|
100
|
+
*/
|
|
101
|
+
export function log(this: void, message: string | number, level?: number, data_or_tag?: unknown, tag?: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Explicitly save buffer of unsaved logs to a file
|
|
104
|
+
*/
|
|
105
|
+
export function save_logs(this: void): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Set error callback function that will be called on error after logging it
|
|
108
|
+
*/
|
|
109
|
+
export function set_error_callback(this: void, callback: (source: string, message: string, traceback: string) => void): void;
|
|
110
|
+
/**
|
|
111
|
+
* Finalize Squid logging - check for crashes and saved all unsaved buffered logs
|
|
112
|
+
*/
|
|
113
|
+
export function final(this: void): void;
|
|
114
|
+
/**
|
|
115
|
+
* Create a new instance of the Squid logger
|
|
116
|
+
*/
|
|
117
|
+
export function new_(this: void, tag?: string, is_allowed?: boolean): SquidInstance;
|
|
118
|
+
export { new_ as new };
|
|
119
|
+
/**
|
|
120
|
+
* Get Squid configuration
|
|
121
|
+
*/
|
|
122
|
+
export function get_config(this: void): SquidConfig;
|
|
123
|
+
/**
|
|
124
|
+
* Set and use user configuration
|
|
125
|
+
*/
|
|
126
|
+
export function set_config(this: void, config: SquidConfig): void;
|
|
127
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** @noResolution */
|
|
2
|
+
declare module 'tweener.tweener' {
|
|
3
|
+
type easing_function = ((current: number, from: number, to: number, time: number) => number) | string | Opaque<"constant"> | number[];
|
|
4
|
+
/**
|
|
5
|
+
* Describe a struct of tween object returned by the `tweener.tween` function
|
|
6
|
+
*/
|
|
7
|
+
interface tween {
|
|
8
|
+
timer_id: number;
|
|
9
|
+
is_paused: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A tweener module to manage tweening operations. Tween functions are based on the Defold timer.delay function.
|
|
13
|
+
* Use `tweener.tween` to create a tween, and `tweener.ease` to get the result of an easing function.
|
|
14
|
+
* You can track the final call of tween by last parameter of the callback function.
|
|
15
|
+
*/
|
|
16
|
+
interface tweener {
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Starts a tweening operation. Return a tween object to manage the tween.
|
|
20
|
+
*/
|
|
21
|
+
export function tween(this: void, easing_function: easing_function, from: number, to: number, time: number | undefined, callback: (value: number, is_end: boolean, time_elapsed: number, time_total: number) => void, update_delta_time?: number | undefined): tween;
|
|
22
|
+
/**
|
|
23
|
+
* Returns the result of an easing function.
|
|
24
|
+
*/
|
|
25
|
+
export function ease(this: void, easing_function: easing_function, from: number, to: number, time: number | undefined, time_elapsed: number): number;
|
|
26
|
+
/**
|
|
27
|
+
* Check if a tween exists
|
|
28
|
+
*/
|
|
29
|
+
export function is_active(this: void, tween: tween): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Cancel a previous running tween.
|
|
32
|
+
*/
|
|
33
|
+
export function cancel(this: void, tween?: tween | undefined): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Check if a tween is paused
|
|
36
|
+
*/
|
|
37
|
+
export function is_paused(this: void, tween: tween): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Sets the pause on a running tween.
|
|
40
|
+
*/
|
|
41
|
+
export function set_pause(this: void, tween: tween, is_paused: boolean): void;
|
|
42
|
+
}
|
|
@@ -90,13 +90,6 @@
|
|
|
90
90
|
"astar"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
{
|
|
94
|
-
"dir": "defold-bridge",
|
|
95
|
-
"classification": "already-vendored",
|
|
96
|
-
"modules": [
|
|
97
|
-
"bridge.bridge"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
93
|
{
|
|
101
94
|
"dir": "defold-clipboard",
|
|
102
95
|
"classification": "native",
|
|
@@ -111,13 +104,6 @@
|
|
|
111
104
|
"coolmath_games"
|
|
112
105
|
]
|
|
113
106
|
},
|
|
114
|
-
{
|
|
115
|
-
"dir": "defold-event",
|
|
116
|
-
"classification": "already-vendored",
|
|
117
|
-
"modules": [
|
|
118
|
-
"event.event"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
107
|
{
|
|
122
108
|
"dir": "defold-extension-unity-ads",
|
|
123
109
|
"classification": "native",
|
|
@@ -148,13 +134,6 @@
|
|
|
148
134
|
"in.triggers"
|
|
149
135
|
]
|
|
150
136
|
},
|
|
151
|
-
{
|
|
152
|
-
"dir": "defold-lang",
|
|
153
|
-
"classification": "already-vendored",
|
|
154
|
-
"modules": [
|
|
155
|
-
"lang.lang"
|
|
156
|
-
]
|
|
157
|
-
},
|
|
158
137
|
{
|
|
159
138
|
"dir": "defold-lfs",
|
|
160
139
|
"classification": "native",
|
|
@@ -169,13 +148,6 @@
|
|
|
169
148
|
"lldebugger.debug"
|
|
170
149
|
]
|
|
171
150
|
},
|
|
172
|
-
{
|
|
173
|
-
"dir": "defold-log",
|
|
174
|
-
"classification": "already-vendored",
|
|
175
|
-
"modules": [
|
|
176
|
-
"log.log"
|
|
177
|
-
]
|
|
178
|
-
},
|
|
179
151
|
{
|
|
180
152
|
"dir": "defold-metrics",
|
|
181
153
|
"classification": "already-vendored",
|
|
@@ -212,13 +184,6 @@
|
|
|
212
184
|
"prng"
|
|
213
185
|
]
|
|
214
186
|
},
|
|
215
|
-
{
|
|
216
|
-
"dir": "defold-proto",
|
|
217
|
-
"classification": "already-vendored",
|
|
218
|
-
"modules": [
|
|
219
|
-
"proto.proto"
|
|
220
|
-
]
|
|
221
|
-
},
|
|
222
187
|
{
|
|
223
188
|
"dir": "defold-random",
|
|
224
189
|
"classification": "native",
|
|
@@ -235,14 +200,6 @@
|
|
|
235
200
|
"richtext.tags"
|
|
236
201
|
]
|
|
237
202
|
},
|
|
238
|
-
{
|
|
239
|
-
"dir": "defold-saver",
|
|
240
|
-
"classification": "already-vendored",
|
|
241
|
-
"modules": [
|
|
242
|
-
"saver.saver",
|
|
243
|
-
"saver.storage"
|
|
244
|
-
]
|
|
245
|
-
},
|
|
246
203
|
{
|
|
247
204
|
"dir": "defold-scene3d",
|
|
248
205
|
"classification": "native",
|
|
@@ -299,13 +256,6 @@
|
|
|
299
256
|
"tile_raycast"
|
|
300
257
|
]
|
|
301
258
|
},
|
|
302
|
-
{
|
|
303
|
-
"dir": "defold-tweener",
|
|
304
|
-
"classification": "already-vendored",
|
|
305
|
-
"modules": [
|
|
306
|
-
"tweener.tweener"
|
|
307
|
-
]
|
|
308
|
-
},
|
|
309
259
|
{
|
|
310
260
|
"dir": "defold-uuid4",
|
|
311
261
|
"classification": "native",
|
|
@@ -669,13 +619,6 @@
|
|
|
669
619
|
"rendy.rendy"
|
|
670
620
|
]
|
|
671
621
|
},
|
|
672
|
-
{
|
|
673
|
-
"dir": "lua-immutable",
|
|
674
|
-
"classification": "already-vendored",
|
|
675
|
-
"modules": [
|
|
676
|
-
"immutable.immutable"
|
|
677
|
-
]
|
|
678
|
-
},
|
|
679
622
|
{
|
|
680
623
|
"dir": "monarch",
|
|
681
624
|
"classification": "already-vendored",
|
|
@@ -694,13 +637,6 @@
|
|
|
694
637
|
"nakama.util.log"
|
|
695
638
|
]
|
|
696
639
|
},
|
|
697
|
-
{
|
|
698
|
-
"dir": "narrator",
|
|
699
|
-
"classification": "already-vendored",
|
|
700
|
-
"modules": [
|
|
701
|
-
"narrator.narrator"
|
|
702
|
-
]
|
|
703
|
-
},
|
|
704
640
|
{
|
|
705
641
|
"dir": "platypus",
|
|
706
642
|
"classification": "already-vendored",
|
|
@@ -708,13 +644,6 @@
|
|
|
708
644
|
"platypus.platypus"
|
|
709
645
|
]
|
|
710
646
|
},
|
|
711
|
-
{
|
|
712
|
-
"dir": "squid",
|
|
713
|
-
"classification": "already-vendored",
|
|
714
|
-
"modules": [
|
|
715
|
-
"squid.squid"
|
|
716
|
-
]
|
|
717
|
-
},
|
|
718
647
|
{
|
|
719
648
|
"dir": "starly",
|
|
720
649
|
"classification": "already-vendored",
|
package/library-targets.json
CHANGED
|
@@ -101,12 +101,6 @@
|
|
|
101
101
|
"fixture": "fixtures/ts-defold/platypus.platypus.d.ts",
|
|
102
102
|
"generated": "generated/platypus.platypus.d.ts"
|
|
103
103
|
},
|
|
104
|
-
{
|
|
105
|
-
"module": "event.event",
|
|
106
|
-
"path": "packages/defold-event/event.event.d.ts",
|
|
107
|
-
"fixture": "fixtures/ts-defold/event.event.d.ts",
|
|
108
|
-
"generated": "generated/event.event.d.ts"
|
|
109
|
-
},
|
|
110
104
|
{
|
|
111
105
|
"module": "richtext.color",
|
|
112
106
|
"path": "packages/defold-richtext/richtext.color.d.ts",
|
|
@@ -125,36 +119,12 @@
|
|
|
125
119
|
"fixture": "fixtures/ts-defold/richtext.tags.d.ts",
|
|
126
120
|
"generated": "generated/richtext.tags.d.ts"
|
|
127
121
|
},
|
|
128
|
-
{
|
|
129
|
-
"module": "narrator.narrator",
|
|
130
|
-
"path": "packages/narrator/narrator.narrator.d.ts",
|
|
131
|
-
"fixture": "fixtures/ts-defold/narrator.narrator.d.ts",
|
|
132
|
-
"generated": "generated/narrator.narrator.d.ts"
|
|
133
|
-
},
|
|
134
122
|
{
|
|
135
123
|
"module": "defcon.console",
|
|
136
124
|
"path": "packages/defcon/defcon.console.d.ts",
|
|
137
125
|
"fixture": "fixtures/ts-defold/defcon.console.d.ts",
|
|
138
126
|
"generated": "generated/defcon.console.d.ts"
|
|
139
127
|
},
|
|
140
|
-
{
|
|
141
|
-
"module": "lang.lang",
|
|
142
|
-
"path": "packages/defold-lang/lang.lang.d.ts",
|
|
143
|
-
"fixture": "fixtures/ts-defold/lang.lang.d.ts",
|
|
144
|
-
"generated": "generated/lang.lang.d.ts"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"module": "saver.saver",
|
|
148
|
-
"path": "packages/defold-saver/saver.saver.d.ts",
|
|
149
|
-
"fixture": "fixtures/ts-defold/saver.saver.d.ts",
|
|
150
|
-
"generated": "generated/saver.saver.d.ts"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"module": "saver.storage",
|
|
154
|
-
"path": "packages/defold-saver/saver.storage.d.ts",
|
|
155
|
-
"fixture": "fixtures/ts-defold/saver.storage.d.ts",
|
|
156
|
-
"generated": "generated/saver.storage.d.ts"
|
|
157
|
-
},
|
|
158
128
|
{
|
|
159
129
|
"module": "defsave.defsave",
|
|
160
130
|
"path": "packages/defsave/defsave.defsave.d.ts",
|
|
@@ -167,12 +137,6 @@
|
|
|
167
137
|
"fixture": "fixtures/ts-defold/persist.persist.d.ts",
|
|
168
138
|
"generated": "generated/persist.persist.d.ts"
|
|
169
139
|
},
|
|
170
|
-
{
|
|
171
|
-
"module": "proto.proto",
|
|
172
|
-
"path": "packages/defold-proto/proto.proto.d.ts",
|
|
173
|
-
"fixture": "fixtures/ts-defold/proto.proto.d.ts",
|
|
174
|
-
"generated": "generated/proto.proto.d.ts"
|
|
175
|
-
},
|
|
176
140
|
{
|
|
177
141
|
"module": "defmath.defmath",
|
|
178
142
|
"path": "packages/defmath/defmath.defmath.d.ts",
|
|
@@ -185,30 +149,12 @@
|
|
|
185
149
|
"fixture": "fixtures/ts-defold/dicebag.dicebag.d.ts",
|
|
186
150
|
"generated": "generated/dicebag.dicebag.d.ts"
|
|
187
151
|
},
|
|
188
|
-
{
|
|
189
|
-
"module": "tweener.tweener",
|
|
190
|
-
"path": "packages/defold-tweener/tweener.tweener.d.ts",
|
|
191
|
-
"fixture": "fixtures/ts-defold/tweener.tweener.d.ts",
|
|
192
|
-
"generated": "generated/tweener.tweener.d.ts"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"module": "squid.squid",
|
|
196
|
-
"path": "packages/squid/squid.squid.d.ts",
|
|
197
|
-
"fixture": "fixtures/ts-defold/squid.squid.d.ts",
|
|
198
|
-
"generated": "generated/squid.squid.d.ts"
|
|
199
|
-
},
|
|
200
152
|
{
|
|
201
153
|
"module": "starly.starly",
|
|
202
154
|
"path": "packages/starly/starly.starly.d.ts",
|
|
203
155
|
"fixture": "fixtures/ts-defold/starly.starly.d.ts",
|
|
204
156
|
"generated": "generated/starly.starly.d.ts"
|
|
205
157
|
},
|
|
206
|
-
{
|
|
207
|
-
"module": "log.log",
|
|
208
|
-
"path": "packages/defold-log/log.log.d.ts",
|
|
209
|
-
"fixture": "fixtures/ts-defold/log.log.d.ts",
|
|
210
|
-
"generated": "generated/log.log.d.ts"
|
|
211
|
-
},
|
|
212
158
|
{
|
|
213
159
|
"module": "metrics.fps",
|
|
214
160
|
"path": "packages/defold-metrics/metrics.fps.d.ts",
|
|
@@ -227,12 +173,6 @@
|
|
|
227
173
|
"fixture": "fixtures/ts-defold/deftest.deftest.d.ts",
|
|
228
174
|
"generated": "generated/deftest.deftest.d.ts"
|
|
229
175
|
},
|
|
230
|
-
{
|
|
231
|
-
"module": "immutable.immutable",
|
|
232
|
-
"path": "packages/lua-immutable/immutable.immutable.d.ts",
|
|
233
|
-
"fixture": "fixtures/ts-defold/immutable.immutable.d.ts",
|
|
234
|
-
"generated": "generated/immutable.immutable.d.ts"
|
|
235
|
-
},
|
|
236
176
|
{
|
|
237
177
|
"module": "nakama.engine.defold",
|
|
238
178
|
"path": "packages/nakama-defold/nakama.engine.defold.d.ts",
|
|
@@ -257,12 +197,6 @@
|
|
|
257
197
|
"fixture": "fixtures/ts-defold/yagames.yagames.d.ts",
|
|
258
198
|
"generated": "generated/yagames.yagames.d.ts"
|
|
259
199
|
},
|
|
260
|
-
{
|
|
261
|
-
"module": "bridge.bridge",
|
|
262
|
-
"path": "packages/defold-bridge/bridge.bridge.d.ts",
|
|
263
|
-
"fixture": "fixtures/ts-defold/bridge.bridge.d.ts",
|
|
264
|
-
"generated": "generated/bridge.bridge.d.ts"
|
|
265
|
-
},
|
|
266
200
|
{
|
|
267
201
|
"module": "zzfx.api",
|
|
268
202
|
"path": "packages/defold-zzfx/zzfx.api.d.ts",
|
package/luals-targets.json
CHANGED
|
@@ -23,6 +23,120 @@
|
|
|
23
23
|
"namespace": "decore",
|
|
24
24
|
"typeRenames": {},
|
|
25
25
|
"ignore": ["**/test/**", "**/example/**"]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"repo": "https://github.com/Insality/defold-tweener",
|
|
29
|
+
"ref": "6",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"sourceGlobs": ["tweener/**/*.lua"],
|
|
32
|
+
"moduleId": "tweener.tweener",
|
|
33
|
+
"namespace": "tweener",
|
|
34
|
+
"typeRenames": {
|
|
35
|
+
"vector": "Vector",
|
|
36
|
+
"vector3": "Vector3",
|
|
37
|
+
"vector4": "Vector4"
|
|
38
|
+
},
|
|
39
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"repo": "https://github.com/Insality/defold-event",
|
|
43
|
+
"ref": "19",
|
|
44
|
+
"license": "MIT",
|
|
45
|
+
"sourceGlobs": ["event/**/*.lua"],
|
|
46
|
+
"moduleId": "event.event",
|
|
47
|
+
"namespace": "event",
|
|
48
|
+
"typeRenames": {},
|
|
49
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"repo": "https://github.com/Insality/defold-lang",
|
|
53
|
+
"ref": "5",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"sourceGlobs": ["lang/**/*.lua"],
|
|
56
|
+
"moduleId": "lang.lang",
|
|
57
|
+
"namespace": "lang",
|
|
58
|
+
"typeRenames": {},
|
|
59
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"repo": "https://github.com/Insality/defold-log",
|
|
63
|
+
"ref": "6",
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"sourceGlobs": ["log/**/*.lua"],
|
|
66
|
+
"moduleId": "log.log",
|
|
67
|
+
"namespace": "log",
|
|
68
|
+
"typeRenames": {},
|
|
69
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"repo": "https://github.com/Insality/defold-proto",
|
|
73
|
+
"ref": "1",
|
|
74
|
+
"license": "MIT",
|
|
75
|
+
"sourceGlobs": ["proto/**/*.lua"],
|
|
76
|
+
"moduleId": "proto.proto",
|
|
77
|
+
"namespace": "proto",
|
|
78
|
+
"typeRenames": {},
|
|
79
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"repo": "https://github.com/Insality/defold-saver",
|
|
83
|
+
"ref": "8",
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"sourceGlobs": ["saver/**/*.lua"],
|
|
86
|
+
"moduleId": "saver.saver",
|
|
87
|
+
"namespace": "saver.saver",
|
|
88
|
+
"typeRenames": {},
|
|
89
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"repo": "https://github.com/Insality/defold-saver",
|
|
93
|
+
"ref": "8",
|
|
94
|
+
"license": "MIT",
|
|
95
|
+
"sourceGlobs": ["saver/**/*.lua"],
|
|
96
|
+
"moduleId": "saver.storage",
|
|
97
|
+
"namespace": "saver.storage",
|
|
98
|
+
"typeRenames": {},
|
|
99
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"repo": "https://github.com/paweljarosz/lua-immutable",
|
|
103
|
+
"ref": "v1.1",
|
|
104
|
+
"license": "MIT",
|
|
105
|
+
"sourceGlobs": ["immutable/**/*.lua"],
|
|
106
|
+
"moduleId": "immutable.immutable",
|
|
107
|
+
"namespace": "immutable",
|
|
108
|
+
"typeRenames": {},
|
|
109
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"repo": "https://github.com/paweljarosz/squid",
|
|
113
|
+
"ref": "1.2",
|
|
114
|
+
"license": "MIT",
|
|
115
|
+
"sourceGlobs": ["squid/**/*.lua"],
|
|
116
|
+
"moduleId": "squid.squid",
|
|
117
|
+
"namespace": "squid",
|
|
118
|
+
"typeRenames": {},
|
|
119
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"repo": "https://github.com/astrochili/narrator",
|
|
123
|
+
"ref": "1.8",
|
|
124
|
+
"license": "MIT",
|
|
125
|
+
"sourceGlobs": ["narrator/annotations.lua", "narrator/narrator.lua", "narrator/story.lua"],
|
|
126
|
+
"moduleId": "narrator.narrator",
|
|
127
|
+
"namespace": "narrator",
|
|
128
|
+
"typeRenames": {},
|
|
129
|
+
"ignore": ["**/test/**", "**/example/**", "**/example_*/**"],
|
|
130
|
+
"annotationOverrides": {
|
|
131
|
+
"moduleFunctions": {
|
|
132
|
+
"parse_content": { "params": { "inclusions": { "optional": true } } }
|
|
133
|
+
},
|
|
134
|
+
"interfaces": {
|
|
135
|
+
"Narrator.Story": {
|
|
136
|
+
"methods": { "continue": { "return": "Narrator.Paragraph[]|Narrator.Paragraph" } }
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
26
140
|
}
|
|
27
141
|
]
|
|
28
142
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defold-typescript/library-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Vendored TypeScript types for popular Defold Lua libraries, core-type-renamed against @defold-typescript/types.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -57,12 +57,6 @@
|
|
|
57
57
|
"./in.triggers": {
|
|
58
58
|
"types": "./generated/in.triggers.d.ts"
|
|
59
59
|
},
|
|
60
|
-
"./immutable.immutable": {
|
|
61
|
-
"types": "./generated/immutable.immutable.d.ts"
|
|
62
|
-
},
|
|
63
|
-
"./log.log": {
|
|
64
|
-
"types": "./generated/log.log.d.ts"
|
|
65
|
-
},
|
|
66
60
|
"./metrics.fps": {
|
|
67
61
|
"types": "./generated/metrics.fps.d.ts"
|
|
68
62
|
},
|
|
@@ -72,9 +66,6 @@
|
|
|
72
66
|
"./platypus.platypus": {
|
|
73
67
|
"types": "./generated/platypus.platypus.d.ts"
|
|
74
68
|
},
|
|
75
|
-
"./event.event": {
|
|
76
|
-
"types": "./generated/event.event.d.ts"
|
|
77
|
-
},
|
|
78
69
|
"./richtext.color": {
|
|
79
70
|
"types": "./generated/richtext.color.d.ts"
|
|
80
71
|
},
|
|
@@ -84,31 +75,16 @@
|
|
|
84
75
|
"./richtext.tags": {
|
|
85
76
|
"types": "./generated/richtext.tags.d.ts"
|
|
86
77
|
},
|
|
87
|
-
"./narrator.narrator": {
|
|
88
|
-
"types": "./generated/narrator.narrator.d.ts"
|
|
89
|
-
},
|
|
90
78
|
"./defcon.console": {
|
|
91
79
|
"types": "./generated/defcon.console.d.ts"
|
|
92
80
|
},
|
|
93
|
-
"./lang.lang": {
|
|
94
|
-
"types": "./generated/lang.lang.d.ts"
|
|
95
|
-
},
|
|
96
81
|
"./package.json": "./package.json",
|
|
97
|
-
"./saver.saver": {
|
|
98
|
-
"types": "./generated/saver.saver.d.ts"
|
|
99
|
-
},
|
|
100
|
-
"./saver.storage": {
|
|
101
|
-
"types": "./generated/saver.storage.d.ts"
|
|
102
|
-
},
|
|
103
82
|
"./defsave.defsave": {
|
|
104
83
|
"types": "./generated/defsave.defsave.d.ts"
|
|
105
84
|
},
|
|
106
85
|
"./persist.persist": {
|
|
107
86
|
"types": "./generated/persist.persist.d.ts"
|
|
108
87
|
},
|
|
109
|
-
"./proto.proto": {
|
|
110
|
-
"types": "./generated/proto.proto.d.ts"
|
|
111
|
-
},
|
|
112
88
|
"./defmath.defmath": {
|
|
113
89
|
"types": "./generated/defmath.defmath.d.ts"
|
|
114
90
|
},
|
|
@@ -118,12 +94,6 @@
|
|
|
118
94
|
"./dicebag.dicebag": {
|
|
119
95
|
"types": "./generated/dicebag.dicebag.d.ts"
|
|
120
96
|
},
|
|
121
|
-
"./tweener.tweener": {
|
|
122
|
-
"types": "./generated/tweener.tweener.d.ts"
|
|
123
|
-
},
|
|
124
|
-
"./squid.squid": {
|
|
125
|
-
"types": "./generated/squid.squid.d.ts"
|
|
126
|
-
},
|
|
127
97
|
"./starly.starly": {
|
|
128
98
|
"types": "./generated/starly.starly.d.ts"
|
|
129
99
|
},
|
|
@@ -140,7 +110,7 @@
|
|
|
140
110
|
"types": "./generated/yagames.yagames.d.ts"
|
|
141
111
|
},
|
|
142
112
|
"./bridge.bridge": {
|
|
143
|
-
"types": "./generated/bridge.
|
|
113
|
+
"types": "./generated/bridge.d.ts"
|
|
144
114
|
},
|
|
145
115
|
"./zzfx.api": {
|
|
146
116
|
"types": "./generated/zzfx.api.d.ts"
|
|
@@ -162,6 +132,7 @@
|
|
|
162
132
|
"library-targets.json",
|
|
163
133
|
"library-classification.json",
|
|
164
134
|
"luals-targets.json",
|
|
135
|
+
"script-api-targets.json",
|
|
165
136
|
"NOTICE",
|
|
166
137
|
"!scripts/**/*.test.ts"
|
|
167
138
|
],
|
|
@@ -176,7 +147,7 @@
|
|
|
176
147
|
"luals:api-doc": "bun scripts/sync-luals-types.ts --api-doc"
|
|
177
148
|
},
|
|
178
149
|
"dependencies": {
|
|
179
|
-
"@defold-typescript/types": "0.
|
|
150
|
+
"@defold-typescript/types": "0.23.0"
|
|
180
151
|
},
|
|
181
152
|
"devDependencies": {
|
|
182
153
|
"@typescript-to-lua/language-extensions": "1.19.0",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"targets": [
|
|
3
|
+
{
|
|
4
|
+
"repo": "https://github.com/Playgama/bridge-defold",
|
|
5
|
+
"ref": "v2.0.0",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"scriptApi": "bridge/api/bridge.script_api",
|
|
8
|
+
"moduleId": "bridge.bridge",
|
|
9
|
+
"namespace": "bridge",
|
|
10
|
+
"generated": "generated/bridge.d.ts",
|
|
11
|
+
"apiDoc": "api-doc/bridge.json",
|
|
12
|
+
"fidelity": "fidelity/bridge.json"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|