@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,156 +0,0 @@
1
- {
2
- "info": {
3
- "namespace": "bzAnim.bzLibrary",
4
- "brief": "",
5
- "description": ""
6
- },
7
- "elements": [
8
- {
9
- "type": "VARIABLE",
10
- "name": "INFO_LEVEL",
11
- "types": []
12
- },
13
- {
14
- "type": "VARIABLE",
15
- "name": "DEBUG_LEVEL",
16
- "types": []
17
- },
18
- {
19
- "type": "VARIABLE",
20
- "name": "TRACE_LEVEL",
21
- "types": []
22
- },
23
- {
24
- "type": "TYPEDEF",
25
- "name": "Path"
26
- },
27
- {
28
- "type": "TYPEDEF",
29
- "name": "Segment"
30
- },
31
- {
32
- "type": "TYPEDEF",
33
- "name": "AnimateArgs"
34
- },
35
- {
36
- "type": "TYPEDEF",
37
- "name": "AnimateSequenceArgs"
38
- },
39
- {
40
- "type": "FUNCTION",
41
- "name": "animate",
42
- "brief": "",
43
- "description": "",
44
- "parameters": [
45
- {
46
- "name": "args",
47
- "doc": "",
48
- "types": [
49
- "AnimateArgs"
50
- ],
51
- "is_optional": "False"
52
- }
53
- ],
54
- "returnvalues": [
55
- {
56
- "name": "",
57
- "doc": "",
58
- "types": [
59
- "string"
60
- ]
61
- }
62
- ]
63
- },
64
- {
65
- "type": "FUNCTION",
66
- "name": "animateSequence",
67
- "brief": "",
68
- "description": "",
69
- "parameters": [
70
- {
71
- "name": "args",
72
- "doc": "",
73
- "types": [
74
- "AnimateSequenceArgs"
75
- ],
76
- "is_optional": "False"
77
- }
78
- ],
79
- "returnvalues": [
80
- {
81
- "name": "",
82
- "doc": "",
83
- "types": [
84
- "string"
85
- ]
86
- }
87
- ]
88
- },
89
- {
90
- "type": "FUNCTION",
91
- "name": "cancel",
92
- "brief": "",
93
- "description": "",
94
- "parameters": [
95
- {
96
- "name": "id",
97
- "doc": "",
98
- "types": [
99
- "string"
100
- ],
101
- "is_optional": "False"
102
- }
103
- ],
104
- "returnvalues": []
105
- },
106
- {
107
- "type": "FUNCTION",
108
- "name": "info",
109
- "brief": "",
110
- "description": "",
111
- "parameters": [],
112
- "returnvalues": [
113
- {
114
- "name": "",
115
- "doc": "",
116
- "types": [
117
- "string"
118
- ]
119
- }
120
- ]
121
- },
122
- {
123
- "type": "FUNCTION",
124
- "name": "isReady",
125
- "brief": "",
126
- "description": "",
127
- "parameters": [],
128
- "returnvalues": [
129
- {
130
- "name": "",
131
- "doc": "",
132
- "types": [
133
- "boolean"
134
- ]
135
- }
136
- ]
137
- },
138
- {
139
- "type": "FUNCTION",
140
- "name": "setDebugLevel",
141
- "brief": "",
142
- "description": "",
143
- "parameters": [
144
- {
145
- "name": "level",
146
- "doc": "",
147
- "types": [
148
- "number"
149
- ],
150
- "is_optional": "False"
151
- }
152
- ],
153
- "returnvalues": []
154
- }
155
- ]
156
- }
@@ -1,109 +0,0 @@
1
- {
2
- "info": {
3
- "namespace": "defcon.console",
4
- "brief": "",
5
- "description": ""
6
- },
7
- "elements": [
8
- {
9
- "type": "FUNCTION",
10
- "name": "start",
11
- "brief": "",
12
- "description": "",
13
- "parameters": [
14
- {
15
- "name": "port",
16
- "doc": "",
17
- "types": [
18
- "number"
19
- ],
20
- "is_optional": "False"
21
- }
22
- ],
23
- "returnvalues": []
24
- },
25
- {
26
- "type": "FUNCTION",
27
- "name": "stop",
28
- "brief": "",
29
- "description": "",
30
- "parameters": [],
31
- "returnvalues": []
32
- },
33
- {
34
- "type": "FUNCTION",
35
- "name": "update",
36
- "brief": "",
37
- "description": "",
38
- "parameters": [],
39
- "returnvalues": []
40
- },
41
- {
42
- "type": "FUNCTION",
43
- "name": "register_module",
44
- "brief": "",
45
- "description": "",
46
- "parameters": [
47
- {
48
- "name": "module",
49
- "doc": "",
50
- "types": [
51
- "unknown"
52
- ],
53
- "is_optional": "False"
54
- }
55
- ],
56
- "returnvalues": []
57
- },
58
- {
59
- "type": "FUNCTION",
60
- "name": "register_command",
61
- "brief": "",
62
- "description": "",
63
- "parameters": [
64
- {
65
- "name": "command",
66
- "doc": "",
67
- "types": [
68
- "string"
69
- ],
70
- "is_optional": "False"
71
- },
72
- {
73
- "name": "description",
74
- "doc": "",
75
- "types": [
76
- "string"
77
- ],
78
- "is_optional": "False"
79
- },
80
- {
81
- "name": "callback",
82
- "doc": "",
83
- "types": [
84
- "CommandCallback"
85
- ],
86
- "is_optional": "False"
87
- }
88
- ],
89
- "returnvalues": []
90
- },
91
- {
92
- "type": "FUNCTION",
93
- "name": "set_environment",
94
- "brief": "",
95
- "description": "",
96
- "parameters": [
97
- {
98
- "name": "env",
99
- "doc": "",
100
- "types": [
101
- "unknown"
102
- ],
103
- "is_optional": "False"
104
- }
105
- ],
106
- "returnvalues": []
107
- }
108
- ]
109
- }
@@ -1,175 +0,0 @@
1
- {
2
- "info": {
3
- "namespace": "defsave.defsave",
4
- "brief": "Save and load config and user data persistently between a Defold project's sessions",
5
- "description": "Save and load config and user data persistently between a Defold project's sessions"
6
- },
7
- "elements": [
8
- {
9
- "type": "VARIABLE",
10
- "name": "appname",
11
- "types": [
12
- "string"
13
- ]
14
- },
15
- {
16
- "type": "FUNCTION",
17
- "name": "set_appname",
18
- "brief": "",
19
- "description": "",
20
- "parameters": [
21
- {
22
- "name": "name",
23
- "doc": "",
24
- "types": [
25
- "string"
26
- ],
27
- "is_optional": "False"
28
- }
29
- ],
30
- "returnvalues": []
31
- },
32
- {
33
- "type": "FUNCTION",
34
- "name": "load",
35
- "brief": "",
36
- "description": "",
37
- "parameters": [
38
- {
39
- "name": "config",
40
- "doc": "",
41
- "types": [
42
- "string"
43
- ],
44
- "is_optional": "False"
45
- }
46
- ],
47
- "returnvalues": [
48
- {
49
- "name": "",
50
- "doc": "",
51
- "types": [
52
- "unknown"
53
- ]
54
- }
55
- ]
56
- },
57
- {
58
- "type": "FUNCTION",
59
- "name": "get",
60
- "brief": "",
61
- "description": "",
62
- "parameters": [
63
- {
64
- "name": "config",
65
- "doc": "",
66
- "types": [
67
- "string"
68
- ],
69
- "is_optional": "False"
70
- },
71
- {
72
- "name": "name",
73
- "doc": "",
74
- "types": [
75
- "string"
76
- ],
77
- "is_optional": "False"
78
- }
79
- ],
80
- "returnvalues": [
81
- {
82
- "name": "",
83
- "doc": "",
84
- "types": [
85
- "unknown"
86
- ]
87
- }
88
- ]
89
- },
90
- {
91
- "type": "FUNCTION",
92
- "name": "set",
93
- "brief": "",
94
- "description": "",
95
- "parameters": [
96
- {
97
- "name": "config",
98
- "doc": "",
99
- "types": [
100
- "string"
101
- ],
102
- "is_optional": "False"
103
- },
104
- {
105
- "name": "name",
106
- "doc": "",
107
- "types": [
108
- "string"
109
- ],
110
- "is_optional": "False"
111
- },
112
- {
113
- "name": "value",
114
- "doc": "",
115
- "types": [
116
- "any"
117
- ],
118
- "is_optional": "False"
119
- }
120
- ],
121
- "returnvalues": []
122
- },
123
- {
124
- "type": "FUNCTION",
125
- "name": "save",
126
- "brief": "",
127
- "description": "",
128
- "parameters": [
129
- {
130
- "name": "config",
131
- "doc": "",
132
- "types": [
133
- "string"
134
- ],
135
- "is_optional": "False"
136
- }
137
- ],
138
- "returnvalues": []
139
- },
140
- {
141
- "type": "FUNCTION",
142
- "name": "save_all",
143
- "brief": "You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.",
144
- "description": "You can save all files at once. By default, it will only actually save files with changes, but you can force saving all files by setting the force flag to true.",
145
- "parameters": [
146
- {
147
- "name": "all_files",
148
- "doc": "false only saves changed files and true saves all files",
149
- "types": [
150
- "boolean"
151
- ],
152
- "is_optional": "True"
153
- }
154
- ],
155
- "returnvalues": []
156
- },
157
- {
158
- "type": "FUNCTION",
159
- "name": "update",
160
- "brief": "In your update, if you want autosave to be enabled, you will need to include",
161
- "description": "In your update, if you want autosave to be enabled, you will need to include",
162
- "parameters": [
163
- {
164
- "name": "dt",
165
- "doc": "",
166
- "types": [
167
- "number"
168
- ],
169
- "is_optional": "False"
170
- }
171
- ],
172
- "returnvalues": []
173
- }
174
- ]
175
- }
@@ -1,71 +0,0 @@
1
- {
2
- "info": {
3
- "namespace": "deftest.deftest",
4
- "brief": "Unit testing in Defold",
5
- "description": "Unit testing in Defold"
6
- },
7
- "elements": [
8
- {
9
- "type": "FUNCTION",
10
- "name": "add",
11
- "brief": "",
12
- "description": "",
13
- "parameters": [
14
- {
15
- "name": "args",
16
- "doc": "",
17
- "types": [
18
- "((...args: any[]) => unknown)[]"
19
- ],
20
- "is_optional": "False"
21
- }
22
- ],
23
- "returnvalues": []
24
- },
25
- {
26
- "type": "FUNCTION",
27
- "name": "run",
28
- "brief": "",
29
- "description": "",
30
- "parameters": [
31
- {
32
- "name": "options",
33
- "doc": "",
34
- "types": [
35
- "{ coverage?: { enabled?: boolean; }; pattern?: string; }"
36
- ],
37
- "is_optional": "True",
38
- "fields": [
39
- {
40
- "name": "coverage",
41
- "doc": "",
42
- "types": [
43
- "{ enabled?: boolean; }"
44
- ],
45
- "is_optional": "True",
46
- "fields": [
47
- {
48
- "name": "enabled",
49
- "doc": "",
50
- "types": [
51
- "boolean"
52
- ],
53
- "is_optional": "True"
54
- }
55
- ]
56
- },
57
- {
58
- "name": "pattern",
59
- "doc": "",
60
- "types": [
61
- "string"
62
- ],
63
- "is_optional": "True"
64
- }
65
- ]
66
- }
67
- ],
68
- "returnvalues": []
69
- }
70
- ]
71
- }