@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "info": {
3
- "namespace": "persist.persist",
3
+ "namespace": "persist",
4
4
  "brief": "A simple interface for saving and loading data.",
5
5
  "description": "A simple interface for saving and loading data."
6
6
  },
@@ -137,6 +137,31 @@
137
137
  ]
138
138
  }
139
139
  ]
140
+ },
141
+ {
142
+ "type": "FUNCTION",
143
+ "name": "exists",
144
+ "brief": "Checks if a file exists.",
145
+ "description": "Checks if a file exists.",
146
+ "parameters": [
147
+ {
148
+ "name": "file_name",
149
+ "doc": "",
150
+ "types": [
151
+ "string"
152
+ ],
153
+ "is_optional": "False"
154
+ }
155
+ ],
156
+ "returnvalues": [
157
+ {
158
+ "name": "",
159
+ "doc": "",
160
+ "types": [
161
+ "boolean"
162
+ ]
163
+ }
164
+ ]
140
165
  }
141
166
  ]
142
167
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "info": {
3
- "namespace": "platypus.platypus",
3
+ "namespace": "platypus",
4
4
  "brief": "Defold platformer engine",
5
5
  "description": "Defold platformer engine"
6
6
  },
@@ -8,8 +8,9 @@
8
8
  {
9
9
  "type": "FUNCTION",
10
10
  "name": "create",
11
- "brief": "",
12
- "description": "",
11
+ "brief": "Create a platypus instance.",
12
+ "description": "Create a platypus instance.\nThis will provide all the functionality to control a game object in a\nplatformer game. The functions will operate on the game object attached\nto the script calling the functions.",
13
+ "docSource": "upstream",
13
14
  "parameters": [
14
15
  {
15
16
  "name": "config",
@@ -33,6 +34,8 @@
33
34
  {
34
35
  "type": "VARIABLE",
35
36
  "name": "FALLING",
37
+ "brief": "",
38
+ "description": "",
36
39
  "types": [
37
40
  "Hash"
38
41
  ]
@@ -40,6 +43,8 @@
40
43
  {
41
44
  "type": "VARIABLE",
42
45
  "name": "GROUND_CONTACT",
46
+ "brief": "",
47
+ "description": "",
43
48
  "types": [
44
49
  "Hash"
45
50
  ]
@@ -47,6 +52,8 @@
47
52
  {
48
53
  "type": "VARIABLE",
49
54
  "name": "WALL_CONTACT",
55
+ "brief": "",
56
+ "description": "",
50
57
  "types": [
51
58
  "Hash"
52
59
  ]
@@ -54,6 +61,8 @@
54
61
  {
55
62
  "type": "VARIABLE",
56
63
  "name": "JUMP",
64
+ "brief": "",
65
+ "description": "",
57
66
  "types": [
58
67
  "Hash"
59
68
  ]
@@ -61,6 +70,8 @@
61
70
  {
62
71
  "type": "VARIABLE",
63
72
  "name": "WALL_JUMP",
73
+ "brief": "",
74
+ "description": "",
64
75
  "types": [
65
76
  "Hash"
66
77
  ]
@@ -68,6 +79,8 @@
68
79
  {
69
80
  "type": "VARIABLE",
70
81
  "name": "DOUBLE_JUMP",
82
+ "brief": "",
83
+ "description": "",
71
84
  "types": [
72
85
  "Hash"
73
86
  ]
@@ -75,6 +88,26 @@
75
88
  {
76
89
  "type": "VARIABLE",
77
90
  "name": "WALL_SLIDE",
91
+ "brief": "",
92
+ "description": "",
93
+ "types": [
94
+ "Hash"
95
+ ]
96
+ },
97
+ {
98
+ "type": "VARIABLE",
99
+ "name": "SEPARATION_RAYS",
100
+ "brief": "Value for `collisions.separation` selecting raycast separation.",
101
+ "description": "Value for `collisions.separation` selecting raycast separation.",
102
+ "types": [
103
+ "Hash"
104
+ ]
105
+ },
106
+ {
107
+ "type": "VARIABLE",
108
+ "name": "SEPARATION_SHAPES",
109
+ "brief": "Value for `collisions.separation` selecting shape separation. Platypus warns",
110
+ "description": "Value for `collisions.separation` selecting shape separation. Platypus warns\nat runtime that this mode is no longer supported and only raycast separation\nis; the constant still exists.",
78
111
  "types": [
79
112
  "Hash"
80
113
  ]
@@ -86,6 +119,8 @@
86
119
  {
87
120
  "type": "VARIABLE",
88
121
  "name": "DIR_UP",
122
+ "brief": "",
123
+ "description": "",
89
124
  "types": [
90
125
  "Direction"
91
126
  ]
@@ -93,6 +128,8 @@
93
128
  {
94
129
  "type": "VARIABLE",
95
130
  "name": "DIR_LEFT",
131
+ "brief": "",
132
+ "description": "",
96
133
  "types": [
97
134
  "Direction"
98
135
  ]
@@ -100,6 +137,8 @@
100
137
  {
101
138
  "type": "VARIABLE",
102
139
  "name": "DIR_RIGHT",
140
+ "brief": "",
141
+ "description": "",
103
142
  "types": [
104
143
  "Direction"
105
144
  ]
@@ -107,6 +146,8 @@
107
146
  {
108
147
  "type": "VARIABLE",
109
148
  "name": "DIR_DOWN",
149
+ "brief": "",
150
+ "description": "",
110
151
  "types": [
111
152
  "Direction"
112
153
  ]
@@ -114,6 +155,8 @@
114
155
  {
115
156
  "type": "VARIABLE",
116
157
  "name": "DIR_ALL",
158
+ "brief": "",
159
+ "description": "",
117
160
  "types": [
118
161
  "Direction"
119
162
  ]
@@ -186,7 +229,8 @@
186
229
  "description": "",
187
230
  "types": [
188
231
  "boolean"
189
- ]
232
+ ],
233
+ "is_optional": "True"
190
234
  },
191
235
  {
192
236
  "name": "reparent",
@@ -194,7 +238,8 @@
194
238
  "description": "",
195
239
  "types": [
196
240
  "boolean"
197
- ]
241
+ ],
242
+ "is_optional": "True"
198
243
  },
199
244
  {
200
245
  "name": "gravity",
@@ -202,7 +247,8 @@
202
247
  "description": "",
203
248
  "types": [
204
249
  "number"
205
- ]
250
+ ],
251
+ "is_optional": "True"
206
252
  },
207
253
  {
208
254
  "name": "max_velocity",
@@ -210,7 +256,8 @@
210
256
  "description": "",
211
257
  "types": [
212
258
  "number"
213
- ]
259
+ ],
260
+ "is_optional": "True"
214
261
  },
215
262
  {
216
263
  "name": "wall_jump_power_ratio_x",
@@ -218,7 +265,8 @@
218
265
  "description": "",
219
266
  "types": [
220
267
  "number"
221
- ]
268
+ ],
269
+ "is_optional": "True"
222
270
  },
223
271
  {
224
272
  "name": "wall_jump_power_ratio_y",
@@ -226,7 +274,8 @@
226
274
  "description": "",
227
275
  "types": [
228
276
  "number"
229
- ]
277
+ ],
278
+ "is_optional": "True"
230
279
  },
231
280
  {
232
281
  "name": "allow_double_jump",
@@ -234,7 +283,8 @@
234
283
  "description": "",
235
284
  "types": [
236
285
  "boolean"
237
- ]
286
+ ],
287
+ "is_optional": "True"
238
288
  },
239
289
  {
240
290
  "name": "allow_wall_jump",
@@ -242,7 +292,8 @@
242
292
  "description": "",
243
293
  "types": [
244
294
  "boolean"
245
- ]
295
+ ],
296
+ "is_optional": "True"
246
297
  },
247
298
  {
248
299
  "name": "const_wall_jump",
@@ -250,7 +301,8 @@
250
301
  "description": "",
251
302
  "types": [
252
303
  "boolean"
253
- ]
304
+ ],
305
+ "is_optional": "True"
254
306
  },
255
307
  {
256
308
  "name": "allow_wall_slide",
@@ -258,7 +310,8 @@
258
310
  "description": "",
259
311
  "types": [
260
312
  "boolean"
261
- ]
313
+ ],
314
+ "is_optional": "True"
262
315
  },
263
316
  {
264
317
  "name": "wall_slide_velocity",
@@ -266,7 +319,8 @@
266
319
  "description": "",
267
320
  "types": [
268
321
  "number"
269
- ]
322
+ ],
323
+ "is_optional": "True"
270
324
  }
271
325
  ]
272
326
  },