@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
@@ -0,0 +1,338 @@
1
+ {
2
+ "info": {
3
+ "namespace": "bzAnim",
4
+ "brief": "",
5
+ "description": ""
6
+ },
7
+ "elements": [
8
+ {
9
+ "type": "VARIABLE",
10
+ "name": "INFO_LEVEL",
11
+ "brief": "",
12
+ "description": "",
13
+ "types": []
14
+ },
15
+ {
16
+ "type": "VARIABLE",
17
+ "name": "DEBUG_LEVEL",
18
+ "brief": "",
19
+ "description": "",
20
+ "types": []
21
+ },
22
+ {
23
+ "type": "VARIABLE",
24
+ "name": "TRACE_LEVEL",
25
+ "brief": "",
26
+ "description": "",
27
+ "types": []
28
+ },
29
+ {
30
+ "type": "TYPEDEF",
31
+ "name": "Path",
32
+ "properties": [
33
+ {
34
+ "name": "x",
35
+ "brief": "",
36
+ "description": "",
37
+ "types": [
38
+ "number"
39
+ ]
40
+ },
41
+ {
42
+ "name": "y",
43
+ "brief": "",
44
+ "description": "",
45
+ "types": [
46
+ "number"
47
+ ]
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "type": "TYPEDEF",
53
+ "name": "Segment",
54
+ "properties": [
55
+ {
56
+ "name": "duration",
57
+ "brief": "",
58
+ "description": "",
59
+ "types": [
60
+ "number"
61
+ ]
62
+ },
63
+ {
64
+ "name": "delay",
65
+ "brief": "",
66
+ "description": "",
67
+ "types": [
68
+ "number"
69
+ ]
70
+ },
71
+ {
72
+ "name": "path",
73
+ "brief": "",
74
+ "description": "",
75
+ "types": [
76
+ "Array<Path>"
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ "type": "TYPEDEF",
83
+ "name": "AnimateArgs",
84
+ "properties": [
85
+ {
86
+ "name": "obj",
87
+ "brief": "",
88
+ "description": "",
89
+ "types": [
90
+ "Hash | string | undefined"
91
+ ]
92
+ },
93
+ {
94
+ "name": "easing",
95
+ "brief": "",
96
+ "description": "",
97
+ "types": [
98
+ "EASING_TYPES"
99
+ ]
100
+ },
101
+ {
102
+ "name": "duration",
103
+ "brief": "",
104
+ "description": "",
105
+ "types": [
106
+ "number"
107
+ ],
108
+ "is_optional": "True"
109
+ },
110
+ {
111
+ "name": "delay",
112
+ "brief": "",
113
+ "description": "",
114
+ "types": [
115
+ "number"
116
+ ],
117
+ "is_optional": "True"
118
+ },
119
+ {
120
+ "name": "path",
121
+ "brief": "",
122
+ "description": "",
123
+ "types": [
124
+ "Array<Path>"
125
+ ],
126
+ "is_optional": "True"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "type": "TYPEDEF",
132
+ "name": "AnimateSequenceArgs",
133
+ "properties": [
134
+ {
135
+ "name": "obj",
136
+ "brief": "",
137
+ "description": "",
138
+ "types": [
139
+ "Hash | string | undefined"
140
+ ]
141
+ },
142
+ {
143
+ "name": "easing",
144
+ "brief": "",
145
+ "description": "",
146
+ "types": [
147
+ "EASING_TYPES"
148
+ ]
149
+ },
150
+ {
151
+ "name": "segments",
152
+ "brief": "",
153
+ "description": "",
154
+ "types": [
155
+ "Array<Segment>"
156
+ ],
157
+ "is_optional": "True"
158
+ },
159
+ {
160
+ "name": "on_complete",
161
+ "brief": "",
162
+ "description": "",
163
+ "types": [
164
+ "boolean | string"
165
+ ],
166
+ "is_optional": "True"
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "type": "FUNCTION",
172
+ "name": "animate",
173
+ "brief": "",
174
+ "description": "",
175
+ "parameters": [
176
+ {
177
+ "name": "args",
178
+ "doc": "",
179
+ "types": [
180
+ "AnimateArgs"
181
+ ],
182
+ "is_optional": "False"
183
+ }
184
+ ],
185
+ "returnvalues": [
186
+ {
187
+ "name": "",
188
+ "doc": "",
189
+ "types": [
190
+ "string"
191
+ ]
192
+ }
193
+ ]
194
+ },
195
+ {
196
+ "type": "FUNCTION",
197
+ "name": "animateSequence",
198
+ "brief": "",
199
+ "description": "",
200
+ "parameters": [
201
+ {
202
+ "name": "args",
203
+ "doc": "",
204
+ "types": [
205
+ "AnimateSequenceArgs"
206
+ ],
207
+ "is_optional": "False"
208
+ }
209
+ ],
210
+ "returnvalues": [
211
+ {
212
+ "name": "",
213
+ "doc": "",
214
+ "types": [
215
+ "string"
216
+ ]
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "FUNCTION",
222
+ "name": "cancel",
223
+ "brief": "",
224
+ "description": "",
225
+ "parameters": [
226
+ {
227
+ "name": "id",
228
+ "doc": "",
229
+ "types": [
230
+ "string"
231
+ ],
232
+ "is_optional": "False"
233
+ }
234
+ ],
235
+ "returnvalues": []
236
+ },
237
+ {
238
+ "type": "FUNCTION",
239
+ "name": "info",
240
+ "brief": "",
241
+ "description": "",
242
+ "parameters": [],
243
+ "returnvalues": [
244
+ {
245
+ "name": "",
246
+ "doc": "",
247
+ "types": [
248
+ "string"
249
+ ]
250
+ }
251
+ ]
252
+ },
253
+ {
254
+ "type": "FUNCTION",
255
+ "name": "isReady",
256
+ "brief": "",
257
+ "description": "",
258
+ "parameters": [],
259
+ "returnvalues": [
260
+ {
261
+ "name": "",
262
+ "doc": "",
263
+ "types": [
264
+ "boolean"
265
+ ]
266
+ }
267
+ ]
268
+ },
269
+ {
270
+ "type": "FUNCTION",
271
+ "name": "setDebugLevel",
272
+ "brief": "",
273
+ "description": "",
274
+ "parameters": [
275
+ {
276
+ "name": "level",
277
+ "doc": "",
278
+ "types": [
279
+ "number"
280
+ ],
281
+ "is_optional": "False"
282
+ }
283
+ ],
284
+ "returnvalues": []
285
+ },
286
+ {
287
+ "type": "FUNCTION",
288
+ "name": "setMaxPoints",
289
+ "brief": "",
290
+ "description": "",
291
+ "parameters": [
292
+ {
293
+ "name": "num",
294
+ "doc": "",
295
+ "types": [
296
+ "number"
297
+ ],
298
+ "is_optional": "False"
299
+ }
300
+ ],
301
+ "returnvalues": []
302
+ },
303
+ {
304
+ "type": "FUNCTION",
305
+ "name": "registerController",
306
+ "brief": "",
307
+ "description": "",
308
+ "parameters": [
309
+ {
310
+ "name": "obj",
311
+ "doc": "",
312
+ "types": [
313
+ "Hash | string"
314
+ ],
315
+ "is_optional": "False"
316
+ }
317
+ ],
318
+ "returnvalues": []
319
+ },
320
+ {
321
+ "type": "FUNCTION",
322
+ "name": "unregisterController",
323
+ "brief": "",
324
+ "description": "",
325
+ "parameters": [
326
+ {
327
+ "name": "obj",
328
+ "doc": "",
329
+ "types": [
330
+ "Hash | string"
331
+ ],
332
+ "is_optional": "False"
333
+ }
334
+ ],
335
+ "returnvalues": []
336
+ }
337
+ ]
338
+ }
@@ -61,7 +61,7 @@
61
61
  "types": [
62
62
  "LuaTable | undefined"
63
63
  ],
64
- "is_optional": "False",
64
+ "is_optional": "True",
65
65
  "is_vararg": "False"
66
66
  },
67
67
  {
@@ -70,7 +70,7 @@
70
70
  "types": [
71
71
  "Url | undefined"
72
72
  ],
73
- "is_optional": "False",
73
+ "is_optional": "True",
74
74
  "is_vararg": "False"
75
75
  }
76
76
  ],
@@ -107,7 +107,7 @@
107
107
  "types": [
108
108
  "string | string[] | undefined"
109
109
  ],
110
- "is_optional": "False",
110
+ "is_optional": "True",
111
111
  "is_vararg": "False"
112
112
  }
113
113
  ],
@@ -152,7 +152,7 @@
152
152
  "types": [
153
153
  "string | string[] | undefined"
154
154
  ],
155
- "is_optional": "False",
155
+ "is_optional": "True",
156
156
  "is_vararg": "False"
157
157
  }
158
158
  ],
@@ -197,7 +197,7 @@
197
197
  "types": [
198
198
  "string | string[] | undefined"
199
199
  ],
200
- "is_optional": "False",
200
+ "is_optional": "True",
201
201
  "is_vararg": "False"
202
202
  }
203
203
  ],
@@ -242,7 +242,7 @@
242
242
  "types": [
243
243
  "string | string[] | undefined"
244
244
  ],
245
- "is_optional": "False",
245
+ "is_optional": "True",
246
246
  "is_vararg": "False"
247
247
  }
248
248
  ],
@@ -286,7 +286,7 @@
286
286
  "types": [
287
287
  "string | undefined"
288
288
  ],
289
- "is_optional": "False",
289
+ "is_optional": "True",
290
290
  "is_vararg": "False"
291
291
  }
292
292
  ],
@@ -375,7 +375,7 @@
375
375
  "types": [
376
376
  "string | Hash | undefined"
377
377
  ],
378
- "is_optional": "False",
378
+ "is_optional": "True",
379
379
  "is_vararg": "False"
380
380
  },
381
381
  {
@@ -384,7 +384,7 @@
384
384
  "types": [
385
385
  "string | undefined"
386
386
  ],
387
- "is_optional": "False",
387
+ "is_optional": "True",
388
388
  "is_vararg": "False"
389
389
  },
390
390
  {
@@ -393,7 +393,7 @@
393
393
  "types": [
394
394
  "LuaTable<string, unknown> | undefined"
395
395
  ],
396
- "is_optional": "False",
396
+ "is_optional": "True",
397
397
  "is_vararg": "False"
398
398
  }
399
399
  ],
@@ -437,7 +437,7 @@
437
437
  "types": [
438
438
  "string | undefined"
439
439
  ],
440
- "is_optional": "False",
440
+ "is_optional": "True",
441
441
  "is_vararg": "False"
442
442
  }
443
443
  ],
@@ -508,7 +508,7 @@
508
508
  "types": [
509
509
  "string | undefined"
510
510
  ],
511
- "is_optional": "False",
511
+ "is_optional": "True",
512
512
  "is_vararg": "False"
513
513
  }
514
514
  ],
@@ -552,7 +552,7 @@
552
552
  "types": [
553
553
  "unknown | undefined"
554
554
  ],
555
- "is_optional": "False",
555
+ "is_optional": "True",
556
556
  "is_vararg": "False"
557
557
  }
558
558
  ],
@@ -587,7 +587,7 @@
587
587
  "types": [
588
588
  "LuaTable<string, unknown> | undefined"
589
589
  ],
590
- "is_optional": "False",
590
+ "is_optional": "True",
591
591
  "is_vararg": "False"
592
592
  }
593
593
  ],
@@ -666,7 +666,7 @@
666
666
  "types": [
667
667
  "unknown | undefined"
668
668
  ],
669
- "is_optional": "False",
669
+ "is_optional": "True",
670
670
  "is_vararg": "False"
671
671
  }
672
672
  ],
@@ -718,7 +718,7 @@
718
718
  "types": [
719
719
  "decore_logger | LuaTable | undefined"
720
720
  ],
721
- "is_optional": "False",
721
+ "is_optional": "True",
722
722
  "is_vararg": "False"
723
723
  }
724
724
  ],
@@ -736,7 +736,7 @@
736
736
  "types": [
737
737
  "string | undefined"
738
738
  ],
739
- "is_optional": "False",
739
+ "is_optional": "True",
740
740
  "is_vararg": "False"
741
741
  },
742
742
  {
@@ -745,7 +745,7 @@
745
745
  "types": [
746
746
  "string | undefined"
747
747
  ],
748
- "is_optional": "False",
748
+ "is_optional": "True",
749
749
  "is_vararg": "False"
750
750
  }
751
751
  ],
@@ -1465,7 +1465,7 @@
1465
1465
  },
1466
1466
  {
1467
1467
  "type": "TYPEDEF",
1468
- "name": "tiny_ecs_Tiny_ECS_module",
1468
+ "name": "tiny_ecs",
1469
1469
  "properties": [
1470
1470
  {
1471
1471
  "name": "requireAll",
@@ -1544,7 +1544,7 @@
1544
1544
  "brief": "Creates a new world",
1545
1545
  "description": "Creates a new world",
1546
1546
  "types": [
1547
- "(...args: unknown[]) => LuaMultiReturn<[world, unknown]>"
1547
+ "(...args: unknown[]) => LuaMultiReturn<[world, ...unknown[]]>"
1548
1548
  ]
1549
1549
  },
1550
1550
  {
@@ -1705,7 +1705,7 @@
1705
1705
  "types": [
1706
1706
  "((events: unknown[]) => void) | ((context: unknown, events: unknown[]) => void) | undefined"
1707
1707
  ],
1708
- "is_optional": "False",
1708
+ "is_optional": "True",
1709
1709
  "is_vararg": "False"
1710
1710
  },
1711
1711
  {
@@ -1714,7 +1714,7 @@
1714
1714
  "types": [
1715
1715
  "unknown | undefined"
1716
1716
  ],
1717
- "is_optional": "False",
1717
+ "is_optional": "True",
1718
1718
  "is_vararg": "False"
1719
1719
  }
1720
1720
  ],
@@ -1757,7 +1757,7 @@
1757
1757
  "types": [
1758
1758
  "((new_event: unknown, events: unknown[], entity_map: LuaTable<entity, unknown[]>) => boolean) | undefined"
1759
1759
  ],
1760
- "is_optional": "False",
1760
+ "is_optional": "True",
1761
1761
  "is_vararg": "False"
1762
1762
  }
1763
1763
  ],
@@ -0,0 +1,150 @@
1
+ {
2
+ "info": {
3
+ "namespace": "defcon",
4
+ "brief": "",
5
+ "description": ""
6
+ },
7
+ "elements": [
8
+ {
9
+ "type": "VARIABLE",
10
+ "name": "print",
11
+ "brief": "The engine's own `print`, captured at load. `start()` replaces the global with a",
12
+ "description": "The engine's own `print`, captured at load. `start()` replaces the global with a\nlogging wrapper that calls this, and `stop()` restores the global from it.",
13
+ "types": [
14
+ "(...args: unknown[]) => void"
15
+ ]
16
+ },
17
+ {
18
+ "type": "VARIABLE",
19
+ "name": "pprint",
20
+ "brief": "The engine's own `pprint`, captured at load. `start()` replaces the global with a",
21
+ "description": "The engine's own `pprint`, captured at load. `start()` replaces the global with a\nlogging wrapper that calls this, and `stop()` restores the global from it.",
22
+ "types": [
23
+ "(...args: unknown[]) => void"
24
+ ]
25
+ },
26
+ {
27
+ "type": "VARIABLE",
28
+ "name": "server",
29
+ "brief": "The `defnet` http_server the console listens on. A router-only stand-in until",
30
+ "description": "The `defnet` http_server the console listens on. A router-only stand-in until\n`start()` creates the real one; opaque here, `defnet` not being vendored by this\ntarget.",
31
+ "types": [
32
+ "unknown"
33
+ ]
34
+ },
35
+ {
36
+ "type": "FUNCTION",
37
+ "name": "start",
38
+ "brief": "Start the console",
39
+ "description": "Start the console",
40
+ "docSource": "upstream",
41
+ "parameters": [
42
+ {
43
+ "name": "port",
44
+ "doc": "",
45
+ "types": [
46
+ "number"
47
+ ],
48
+ "is_optional": "False"
49
+ }
50
+ ],
51
+ "returnvalues": []
52
+ },
53
+ {
54
+ "type": "FUNCTION",
55
+ "name": "stop",
56
+ "brief": "Stop the server",
57
+ "description": "Stop the server",
58
+ "docSource": "upstream",
59
+ "parameters": [],
60
+ "returnvalues": []
61
+ },
62
+ {
63
+ "type": "FUNCTION",
64
+ "name": "update",
65
+ "brief": "Update the server",
66
+ "description": "Update the server\nPreferably call this once per frame",
67
+ "docSource": "upstream",
68
+ "parameters": [],
69
+ "returnvalues": []
70
+ },
71
+ {
72
+ "type": "FUNCTION",
73
+ "name": "register_module",
74
+ "brief": "Register a module. All functions on the module will be exposed to",
75
+ "description": "Register a module. All functions on the module will be exposed to\nthe console",
76
+ "docSource": "upstream",
77
+ "parameters": [
78
+ {
79
+ "name": "module",
80
+ "doc": "",
81
+ "types": [
82
+ "unknown"
83
+ ],
84
+ "is_optional": "False"
85
+ },
86
+ {
87
+ "name": "name",
88
+ "doc": "",
89
+ "types": [
90
+ "string"
91
+ ],
92
+ "is_optional": "True"
93
+ }
94
+ ],
95
+ "returnvalues": []
96
+ },
97
+ {
98
+ "type": "FUNCTION",
99
+ "name": "register_command",
100
+ "brief": "Register a console command",
101
+ "description": "Register a console command",
102
+ "docSource": "upstream",
103
+ "parameters": [
104
+ {
105
+ "name": "command",
106
+ "doc": "",
107
+ "types": [
108
+ "string"
109
+ ],
110
+ "is_optional": "False"
111
+ },
112
+ {
113
+ "name": "description",
114
+ "doc": "",
115
+ "types": [
116
+ "string"
117
+ ],
118
+ "is_optional": "False"
119
+ },
120
+ {
121
+ "name": "callback",
122
+ "doc": "",
123
+ "types": [
124
+ "CommandCallback"
125
+ ],
126
+ "is_optional": "False"
127
+ }
128
+ ],
129
+ "returnvalues": []
130
+ },
131
+ {
132
+ "type": "FUNCTION",
133
+ "name": "set_environment",
134
+ "brief": "Set the global environment table used for commands ran as Lua code and inspect.",
135
+ "description": "Set the global environment table used for commands ran as Lua code and inspect.",
136
+ "docSource": "upstream",
137
+ "parameters": [
138
+ {
139
+ "name": "env",
140
+ "doc": "",
141
+ "types": [
142
+ "unknown"
143
+ ],
144
+ "is_optional": "False"
145
+ }
146
+ ],
147
+ "returnvalues": []
148
+ }
149
+ ]
150
+ }