@defold-typescript/library-types 0.22.0 → 0.24.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.
Files changed (145) hide show
  1. package/api-doc/boom.json +3870 -0
  2. package/api-doc/{bridge.bridge.json → bridge.json} +754 -844
  3. package/api-doc/bzAnim.json +338 -0
  4. package/api-doc/decore.json +23 -23
  5. package/api-doc/defcon.json +150 -0
  6. package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
  7. package/api-doc/defsave.json +518 -0
  8. package/api-doc/deftest.json +741 -0
  9. package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
  10. package/api-doc/druid.json +249 -1846
  11. package/api-doc/event.json +1074 -0
  12. package/api-doc/gooey.json +2050 -0
  13. package/api-doc/immutable.json +65 -0
  14. package/api-doc/in.accelerometer.json +75 -1
  15. package/api-doc/in.button.json +17 -10
  16. package/api-doc/in.cursor.json +26 -0
  17. package/api-doc/in.gesture.json +401 -6
  18. package/api-doc/in.keyboard.json +2 -0
  19. package/api-doc/in.mapper.json +12 -8
  20. package/api-doc/in.onscreen.json +61 -5
  21. package/api-doc/in.state.json +61 -13
  22. package/api-doc/in.textbox.json +23 -12
  23. package/api-doc/in.triggers.json +336 -0
  24. package/api-doc/lang.json +528 -0
  25. package/api-doc/{event.event.json → log.json} +96 -101
  26. package/api-doc/metrics.fps.json +61 -2
  27. package/api-doc/metrics.mem.json +61 -2
  28. package/api-doc/monarch.monarch.json +249 -7
  29. package/api-doc/monarch.transitions.easings.json +19 -26
  30. package/api-doc/monarch.transitions.gui.json +782 -79
  31. package/api-doc/nakama.engine.defold.json +31 -18
  32. package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
  33. package/api-doc/nakama.util.log.json +32 -4
  34. package/api-doc/narrator.json +647 -0
  35. package/api-doc/openapi/nakama.nakama.json +7680 -0
  36. package/api-doc/orthographic.camera.json +96 -98
  37. package/api-doc/orthographic.json +602 -0
  38. package/api-doc/panthera.json +1183 -0
  39. package/api-doc/{persist.persist.json → persist.json} +26 -1
  40. package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
  41. package/api-doc/proto.json +995 -0
  42. package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
  43. package/api-doc/richtext.color.json +77 -0
  44. package/api-doc/richtext.richtext.json +375 -5
  45. package/api-doc/saver.saver.json +714 -263
  46. package/api-doc/saver.storage.json +283 -52
  47. package/api-doc/squid.json +846 -0
  48. package/api-doc/{starly.starly.json → starly.json} +1 -1
  49. package/api-doc/tweener.json +277 -0
  50. package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
  51. package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
  52. package/authored-targets.json +403 -0
  53. package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
  54. package/generated/bridge.d.ts +468 -0
  55. package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
  56. package/generated/decore.d.ts +37 -37
  57. package/generated/defcon.d.ts +43 -0
  58. package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
  59. package/generated/defsave.d.ts +144 -0
  60. package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
  61. package/generated/druid.d.ts +198 -502
  62. package/generated/event.d.ts +318 -0
  63. package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
  64. package/generated/immutable.d.ts +13 -0
  65. package/generated/in.onscreen.d.ts +5 -0
  66. package/generated/in.textbox.d.ts +4 -0
  67. package/generated/lang.d.ts +101 -0
  68. package/generated/log.d.ts +36 -0
  69. package/generated/metrics.fps.d.ts +19 -1
  70. package/generated/metrics.mem.d.ts +19 -1
  71. package/generated/monarch.monarch.d.ts +44 -1
  72. package/generated/monarch.transitions.easings.d.ts +0 -1
  73. package/generated/monarch.transitions.gui.d.ts +96 -12
  74. package/generated/nakama.d.ts +1158 -0
  75. package/generated/nakama.engine.defold.d.ts +3 -1
  76. package/generated/nakama.util.log.d.ts +6 -0
  77. package/generated/narrator.d.ts +121 -0
  78. package/generated/openapi/nakama.nakama.d.ts +884 -0
  79. package/generated/orthographic.camera.d.ts +24 -38
  80. package/generated/orthographic.d.ts +155 -0
  81. package/generated/panthera.d.ts +170 -0
  82. package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
  83. package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
  84. package/generated/proto.d.ts +146 -0
  85. package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
  86. package/generated/richtext.color.d.ts +15 -0
  87. package/generated/saver.saver.d.ts +289 -42
  88. package/generated/saver.storage.d.ts +79 -14
  89. package/generated/squid.d.ts +127 -0
  90. package/generated/tweener.d.ts +42 -0
  91. package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
  92. package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
  93. package/library-classification.json +0 -227
  94. package/library-targets.json +1 -284
  95. package/luals-targets.json +168 -1
  96. package/openapi-targets.json +17 -0
  97. package/package.json +9 -88
  98. package/script-api-targets.json +15 -0
  99. package/scripts/__snapshots__/parse-luals.test.ts.snap +504 -85
  100. package/scripts/apply-luals-overrides.ts +95 -0
  101. package/scripts/authored-parity.ts +718 -0
  102. package/scripts/emit-library-dts.ts +177 -19
  103. package/scripts/extract-api-doc.ts +189 -38
  104. package/scripts/fidelity-floor.ts +178 -0
  105. package/scripts/import-upstream-docs.ts +125 -0
  106. package/scripts/lower-api-doc.ts +69 -19
  107. package/scripts/luals-fidelity.ts +22 -10
  108. package/scripts/map-luals-types.ts +86 -22
  109. package/scripts/parse-lua-surface.ts +187 -0
  110. package/scripts/parse-luals.ts +473 -22
  111. package/scripts/parse-markdown-api.ts +247 -0
  112. package/scripts/parse-openapi-api.ts +313 -0
  113. package/scripts/sync-authored-types.ts +249 -0
  114. package/scripts/sync-library-types.ts +99 -3
  115. package/scripts/sync-luals-types.ts +29 -2
  116. package/scripts/sync-markdown-types.ts +761 -0
  117. package/scripts/sync-openapi-types.ts +308 -0
  118. package/scripts/sync-script-api-types.ts +367 -0
  119. package/api-doc/boom.boom.json +0 -26
  120. package/api-doc/bzAnim.bzLibrary.json +0 -156
  121. package/api-doc/defcon.console.json +0 -109
  122. package/api-doc/defsave.defsave.json +0 -175
  123. package/api-doc/deftest.deftest.json +0 -71
  124. package/api-doc/gooey.gooey.json +0 -963
  125. package/api-doc/immutable.immutable.json +0 -63
  126. package/api-doc/lang.lang.json +0 -411
  127. package/api-doc/log.log.json +0 -50
  128. package/api-doc/narrator.narrator.json +0 -150
  129. package/api-doc/proto.proto.json +0 -355
  130. package/api-doc/squid.squid.json +0 -660
  131. package/api-doc/tweener.tweener.json +0 -419
  132. package/generated/bridge.bridge.d.ts +0 -533
  133. package/generated/defcon.console.d.ts +0 -24
  134. package/generated/defsave.defsave.d.ts +0 -31
  135. package/generated/event.event.d.ts +0 -54
  136. package/generated/immutable.immutable.d.ts +0 -13
  137. package/generated/lang.lang.d.ts +0 -33
  138. package/generated/log.log.d.ts +0 -40
  139. package/generated/nakama.nakama.d.ts +0 -594
  140. package/generated/narrator.narrator.d.ts +0 -66
  141. package/generated/proto.proto.d.ts +0 -36
  142. package/generated/squid.squid.d.ts +0 -106
  143. package/generated/tweener.tweener.d.ts +0 -151
  144. /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
  145. /package/generated/{starly.starly.d.ts → starly.d.ts} +0 -0
@@ -11,23 +11,177 @@
11
11
  },
12
12
  {
13
13
  "type": "TYPEDEF",
14
- "name": "ShowOptions"
14
+ "name": "ShowOptions",
15
+ "properties": [
16
+ {
17
+ "name": "clear",
18
+ "brief": "",
19
+ "description": "",
20
+ "types": [
21
+ "boolean"
22
+ ],
23
+ "is_optional": "True"
24
+ },
25
+ {
26
+ "name": "reload",
27
+ "brief": "",
28
+ "description": "",
29
+ "types": [
30
+ "boolean"
31
+ ],
32
+ "is_optional": "True"
33
+ },
34
+ {
35
+ "name": "sequential",
36
+ "brief": "",
37
+ "description": "",
38
+ "types": [
39
+ "boolean"
40
+ ],
41
+ "is_optional": "True"
42
+ },
43
+ {
44
+ "name": "no_stack",
45
+ "brief": "",
46
+ "description": "",
47
+ "types": [
48
+ "boolean"
49
+ ],
50
+ "is_optional": "True"
51
+ },
52
+ {
53
+ "name": "pop",
54
+ "brief": "",
55
+ "description": "",
56
+ "types": [
57
+ "number"
58
+ ],
59
+ "is_optional": "True"
60
+ }
61
+ ]
15
62
  },
16
63
  {
17
64
  "type": "TYPEDEF",
18
- "name": "ReplaceOptions"
65
+ "name": "ReplaceOptions",
66
+ "properties": [
67
+ {
68
+ "name": "clear",
69
+ "brief": "",
70
+ "description": "",
71
+ "types": [
72
+ "boolean"
73
+ ],
74
+ "is_optional": "True"
75
+ },
76
+ {
77
+ "name": "reload",
78
+ "brief": "",
79
+ "description": "",
80
+ "types": [
81
+ "boolean"
82
+ ],
83
+ "is_optional": "True"
84
+ },
85
+ {
86
+ "name": "no_stack",
87
+ "brief": "",
88
+ "description": "",
89
+ "types": [
90
+ "boolean"
91
+ ],
92
+ "is_optional": "True"
93
+ }
94
+ ]
19
95
  },
20
96
  {
21
97
  "type": "TYPEDEF",
22
- "name": "RegisterProxyOptions"
98
+ "name": "RegisterProxyOptions",
99
+ "properties": [
100
+ {
101
+ "name": "popup",
102
+ "brief": "",
103
+ "description": "",
104
+ "types": [
105
+ "boolean"
106
+ ],
107
+ "is_optional": "True"
108
+ },
109
+ {
110
+ "name": "popup_on_popup",
111
+ "brief": "",
112
+ "description": "",
113
+ "types": [
114
+ "boolean"
115
+ ],
116
+ "is_optional": "True"
117
+ },
118
+ {
119
+ "name": "timestep_below_popup",
120
+ "brief": "",
121
+ "description": "",
122
+ "types": [
123
+ "number"
124
+ ],
125
+ "is_optional": "True"
126
+ },
127
+ {
128
+ "name": "screen_keeps_input_focus_when_below_popup",
129
+ "brief": "",
130
+ "description": "",
131
+ "types": [
132
+ "boolean"
133
+ ],
134
+ "is_optional": "True"
135
+ },
136
+ {
137
+ "name": "others_keep_input_focus_when_below_screen",
138
+ "brief": "",
139
+ "description": "",
140
+ "types": [
141
+ "boolean"
142
+ ],
143
+ "is_optional": "True"
144
+ },
145
+ {
146
+ "name": "auto_preload",
147
+ "brief": "",
148
+ "description": "",
149
+ "types": [
150
+ "boolean"
151
+ ],
152
+ "is_optional": "True"
153
+ }
154
+ ]
23
155
  },
24
156
  {
25
157
  "type": "TYPEDEF",
26
- "name": "BackOptions"
158
+ "name": "BackOptions",
159
+ "properties": [
160
+ {
161
+ "name": "sequential",
162
+ "brief": "",
163
+ "description": "",
164
+ "types": [
165
+ "boolean"
166
+ ],
167
+ "is_optional": "True"
168
+ }
169
+ ]
27
170
  },
28
171
  {
29
172
  "type": "TYPEDEF",
30
- "name": "PreloadOptions"
173
+ "name": "PreloadOptions",
174
+ "properties": [
175
+ {
176
+ "name": "auto_preload",
177
+ "brief": "",
178
+ "description": "",
179
+ "types": [
180
+ "boolean"
181
+ ],
182
+ "is_optional": "True"
183
+ }
184
+ ]
31
185
  },
32
186
  {
33
187
  "type": "TYPEDEF",
@@ -41,9 +195,74 @@
41
195
  "type": "TYPEDEF",
42
196
  "name": "Callback"
43
197
  },
198
+ {
199
+ "type": "VARIABLE",
200
+ "name": "TRANSITION_DONE",
201
+ "brief": "Post this back to Monarch from a transition listener once the transition",
202
+ "description": "Post this back to Monarch from a transition listener once the transition\nhas finished. Monarch will not proceed until it arrives.",
203
+ "types": [
204
+ "Hash"
205
+ ]
206
+ },
207
+ {
208
+ "type": "VARIABLE",
209
+ "name": "TRANSITION_SHOW_IN",
210
+ "brief": "Sent to a screen's transition url when the screen should transition in.",
211
+ "description": "Sent to a screen's transition url when the screen should transition in.",
212
+ "types": [
213
+ "Hash"
214
+ ]
215
+ },
216
+ {
217
+ "type": "VARIABLE",
218
+ "name": "TRANSITION_SHOW_OUT",
219
+ "brief": "Sent to a screen's transition url when the screen should transition out.",
220
+ "description": "Sent to a screen's transition url when the screen should transition out.",
221
+ "types": [
222
+ "Hash"
223
+ ]
224
+ },
225
+ {
226
+ "type": "VARIABLE",
227
+ "name": "TRANSITION_BACK_IN",
228
+ "brief": "Sent to a screen's transition url when the screen above it was popped and",
229
+ "description": "Sent to a screen's transition url when the screen above it was popped and\nthis screen should transition back in.",
230
+ "types": [
231
+ "Hash"
232
+ ]
233
+ },
234
+ {
235
+ "type": "VARIABLE",
236
+ "name": "TRANSITION_BACK_OUT",
237
+ "brief": "Sent to a screen's transition url when this screen is being popped and",
238
+ "description": "Sent to a screen's transition url when this screen is being popped and\nshould transition back out.",
239
+ "types": [
240
+ "Hash"
241
+ ]
242
+ },
243
+ {
244
+ "type": "VARIABLE",
245
+ "name": "FOCUS_GAINED",
246
+ "brief": "Sent to a screen's focus url when the screen gains focus.",
247
+ "description": "Sent to a screen's focus url when the screen gains focus.",
248
+ "types": [
249
+ "Hash"
250
+ ]
251
+ },
252
+ {
253
+ "type": "VARIABLE",
254
+ "name": "FOCUS_LOST",
255
+ "brief": "Sent to a screen's focus url when the screen loses focus.",
256
+ "description": "Sent to a screen's focus url when the screen loses focus.",
257
+ "types": [
258
+ "Hash"
259
+ ]
260
+ },
44
261
  {
45
262
  "type": "VARIABLE",
46
263
  "name": "TRANSITION",
264
+ "brief": "",
265
+ "description": "",
47
266
  "types": [
48
267
  "{ DONE: Hash; SHOW_IN: Hash; SHOW_OUT: Hash; BACK_IN: Hash; BACK_OUT: Hash; }"
49
268
  ],
@@ -88,11 +307,14 @@
88
307
  ],
89
308
  "is_optional": "False"
90
309
  }
91
- ]
310
+ ],
311
+ "deprecated": "Use the flat `TRANSITION_*` constants instead — Monarch marks\nthis grouping deprecated in its own source."
92
312
  },
93
313
  {
94
314
  "type": "VARIABLE",
95
315
  "name": "FOCUS",
316
+ "brief": "",
317
+ "description": "",
96
318
  "types": [
97
319
  "{ GAINED: Hash; LOST: Hash; }"
98
320
  ],
@@ -113,11 +335,14 @@
113
335
  ],
114
336
  "is_optional": "False"
115
337
  }
116
- ]
338
+ ],
339
+ "deprecated": "Use the flat `FOCUS_*` constants instead — Monarch marks this\ngrouping deprecated in its own source."
117
340
  },
118
341
  {
119
342
  "type": "VARIABLE",
120
343
  "name": "SCREEN_TRANSITION_IN_STARTED",
344
+ "brief": "Sent to every url registered with `add_listener` when a screen begins",
345
+ "description": "Sent to every url registered with `add_listener` when a screen begins\ntransitioning in, carrying `screen` and `previous_screen` ids.",
121
346
  "types": [
122
347
  "Hash"
123
348
  ]
@@ -125,6 +350,8 @@
125
350
  {
126
351
  "type": "VARIABLE",
127
352
  "name": "SCREEN_TRANSITION_IN_FINISHED",
353
+ "brief": "",
354
+ "description": "",
128
355
  "types": [
129
356
  "Hash"
130
357
  ]
@@ -132,6 +359,8 @@
132
359
  {
133
360
  "type": "VARIABLE",
134
361
  "name": "SCREEN_TRANSITION_OUT_STARTED",
362
+ "brief": "",
363
+ "description": "",
135
364
  "types": [
136
365
  "Hash"
137
366
  ]
@@ -139,6 +368,8 @@
139
368
  {
140
369
  "type": "VARIABLE",
141
370
  "name": "SCREEN_TRANSITION_OUT_FINISHED",
371
+ "brief": "",
372
+ "description": "",
142
373
  "types": [
143
374
  "Hash"
144
375
  ]
@@ -146,6 +377,8 @@
146
377
  {
147
378
  "type": "VARIABLE",
148
379
  "name": "SCREEN_TRANSITION_FAILED",
380
+ "brief": "",
381
+ "description": "",
149
382
  "types": [
150
383
  "Hash"
151
384
  ]
@@ -316,6 +549,15 @@
316
549
  ],
317
550
  "returnvalues": []
318
551
  },
552
+ {
553
+ "type": "VARIABLE",
554
+ "name": "register",
555
+ "brief": "Alias of {@link register_proxy}, kept for the pre-factory API.",
556
+ "description": "Alias of {@link register_proxy}, kept for the pre-factory API.\nTyped through the function it aliases so the two cannot drift apart.",
557
+ "types": [
558
+ "typeof register_proxy"
559
+ ]
560
+ },
319
561
  {
320
562
  "type": "FUNCTION",
321
563
  "name": "register_factory",
@@ -15,7 +15,25 @@
15
15
  },
16
16
  {
17
17
  "type": "TYPEDEF",
18
- "name": "Easing"
18
+ "name": "Easing",
19
+ "properties": [
20
+ {
21
+ "name": "IN",
22
+ "brief": "",
23
+ "description": "",
24
+ "types": [
25
+ "(typeof gui)[`EASING_OUT${EasingOut}`]"
26
+ ]
27
+ },
28
+ {
29
+ "name": "OUT",
30
+ "brief": "",
31
+ "description": "",
32
+ "types": [
33
+ "(typeof gui)[`EASING_IN${EasingIn}`]"
34
+ ]
35
+ }
36
+ ]
19
37
  },
20
38
  {
21
39
  "type": "FUNCTION",
@@ -176,31 +194,6 @@
176
194
  ]
177
195
  }
178
196
  ]
179
- },
180
- {
181
- "type": "FUNCTION",
182
- "name": "create",
183
- "brief": "",
184
- "description": "",
185
- "parameters": [
186
- {
187
- "name": "name",
188
- "doc": "",
189
- "types": [
190
- "EasingIn | EasingOut"
191
- ],
192
- "is_optional": "False"
193
- }
194
- ],
195
- "returnvalues": [
196
- {
197
- "name": "",
198
- "doc": "",
199
- "types": [
200
- "Easing"
201
- ]
202
- }
203
- ]
204
197
  }
205
198
  ]
206
199
  }