@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.
- package/api-doc/boom.json +3870 -0
- package/api-doc/{bridge.bridge.json → bridge.json} +754 -844
- package/api-doc/bzAnim.json +338 -0
- package/api-doc/decore.json +23 -23
- package/api-doc/defcon.json +150 -0
- package/api-doc/{defmath.defmath.json → defmath.json} +6 -46
- package/api-doc/defsave.json +518 -0
- package/api-doc/deftest.json +741 -0
- package/api-doc/{dicebag.dicebag.json → dicebag.json} +19 -1
- package/api-doc/druid.json +249 -1846
- package/api-doc/event.json +1074 -0
- package/api-doc/gooey.json +2050 -0
- package/api-doc/immutable.json +65 -0
- package/api-doc/in.accelerometer.json +75 -1
- package/api-doc/in.button.json +17 -10
- package/api-doc/in.cursor.json +26 -0
- package/api-doc/in.gesture.json +401 -6
- package/api-doc/in.keyboard.json +2 -0
- package/api-doc/in.mapper.json +12 -8
- package/api-doc/in.onscreen.json +61 -5
- package/api-doc/in.state.json +61 -13
- package/api-doc/in.textbox.json +23 -12
- package/api-doc/in.triggers.json +336 -0
- package/api-doc/lang.json +528 -0
- package/api-doc/{event.event.json → log.json} +96 -101
- package/api-doc/metrics.fps.json +61 -2
- package/api-doc/metrics.mem.json +61 -2
- package/api-doc/monarch.monarch.json +249 -7
- package/api-doc/monarch.transitions.easings.json +19 -26
- package/api-doc/monarch.transitions.gui.json +782 -79
- package/api-doc/nakama.engine.defold.json +31 -18
- package/api-doc/{nakama.nakama.json → nakama.json} +4752 -2554
- package/api-doc/nakama.util.log.json +32 -4
- package/api-doc/narrator.json +647 -0
- package/api-doc/openapi/nakama.nakama.json +7680 -0
- package/api-doc/orthographic.camera.json +96 -98
- package/api-doc/orthographic.json +602 -0
- package/api-doc/panthera.json +1183 -0
- package/api-doc/{persist.persist.json → persist.json} +26 -1
- package/api-doc/{platypus.platypus.json → platypus.json} +68 -14
- package/api-doc/proto.json +995 -0
- package/api-doc/{rendy.rendy.json → rendy.json} +46 -99
- package/api-doc/richtext.color.json +77 -0
- package/api-doc/richtext.richtext.json +375 -5
- package/api-doc/saver.saver.json +714 -263
- package/api-doc/saver.storage.json +283 -52
- package/api-doc/squid.json +846 -0
- package/api-doc/{starly.starly.json → starly.json} +1 -1
- package/api-doc/tweener.json +277 -0
- package/api-doc/{yagames.yagames.json → yagames.json} +784 -189
- package/api-doc/{zzfx.api.json → zzfx.json} +9 -9
- package/authored-targets.json +403 -0
- package/generated/{boom.boom.d.ts → boom.d.ts} +14 -0
- package/generated/bridge.d.ts +468 -0
- package/generated/{bzAnim.bzLibrary.d.ts → bzAnim.d.ts} +6 -0
- package/generated/decore.d.ts +37 -37
- package/generated/defcon.d.ts +43 -0
- package/generated/{defmath.defmath.d.ts → defmath.d.ts} +3 -2
- package/generated/defsave.d.ts +144 -0
- package/generated/{dicebag.dicebag.d.ts → dicebag.d.ts} +25 -0
- package/generated/druid.d.ts +198 -502
- package/generated/event.d.ts +318 -0
- package/generated/{gooey.gooey.d.ts → gooey.d.ts} +61 -6
- package/generated/immutable.d.ts +13 -0
- package/generated/in.onscreen.d.ts +5 -0
- package/generated/in.textbox.d.ts +4 -0
- package/generated/lang.d.ts +101 -0
- package/generated/log.d.ts +36 -0
- package/generated/metrics.fps.d.ts +19 -1
- package/generated/metrics.mem.d.ts +19 -1
- package/generated/monarch.monarch.d.ts +44 -1
- package/generated/monarch.transitions.easings.d.ts +0 -1
- package/generated/monarch.transitions.gui.d.ts +96 -12
- package/generated/nakama.d.ts +1158 -0
- package/generated/nakama.engine.defold.d.ts +3 -1
- package/generated/nakama.util.log.d.ts +6 -0
- package/generated/narrator.d.ts +121 -0
- package/generated/openapi/nakama.nakama.d.ts +884 -0
- package/generated/orthographic.camera.d.ts +24 -38
- package/generated/orthographic.d.ts +155 -0
- package/generated/panthera.d.ts +170 -0
- package/generated/{persist.persist.d.ts → persist.d.ts} +3 -0
- package/generated/{platypus.platypus.d.ts → platypus.d.ts} +9 -0
- package/generated/proto.d.ts +146 -0
- package/generated/{rendy.rendy.d.ts → rendy.d.ts} +33 -80
- package/generated/richtext.color.d.ts +15 -0
- package/generated/saver.saver.d.ts +289 -42
- package/generated/saver.storage.d.ts +79 -14
- package/generated/squid.d.ts +127 -0
- package/generated/tweener.d.ts +42 -0
- package/generated/{yagames.yagames.d.ts → yagames.d.ts} +151 -29
- package/generated/{zzfx.api.d.ts → zzfx.d.ts} +7 -0
- package/library-classification.json +0 -227
- package/library-targets.json +1 -284
- package/luals-targets.json +168 -1
- package/openapi-targets.json +17 -0
- package/package.json +9 -88
- package/script-api-targets.json +15 -0
- package/scripts/__snapshots__/parse-luals.test.ts.snap +504 -85
- package/scripts/apply-luals-overrides.ts +95 -0
- package/scripts/authored-parity.ts +718 -0
- package/scripts/emit-library-dts.ts +177 -19
- package/scripts/extract-api-doc.ts +189 -38
- package/scripts/fidelity-floor.ts +178 -0
- package/scripts/import-upstream-docs.ts +125 -0
- package/scripts/lower-api-doc.ts +69 -19
- package/scripts/luals-fidelity.ts +22 -10
- package/scripts/map-luals-types.ts +86 -22
- package/scripts/parse-lua-surface.ts +187 -0
- package/scripts/parse-luals.ts +473 -22
- package/scripts/parse-markdown-api.ts +247 -0
- package/scripts/parse-openapi-api.ts +313 -0
- package/scripts/sync-authored-types.ts +249 -0
- package/scripts/sync-library-types.ts +99 -3
- package/scripts/sync-luals-types.ts +29 -2
- package/scripts/sync-markdown-types.ts +761 -0
- package/scripts/sync-openapi-types.ts +308 -0
- package/scripts/sync-script-api-types.ts +367 -0
- package/api-doc/boom.boom.json +0 -26
- package/api-doc/bzAnim.bzLibrary.json +0 -156
- package/api-doc/defcon.console.json +0 -109
- package/api-doc/defsave.defsave.json +0 -175
- package/api-doc/deftest.deftest.json +0 -71
- package/api-doc/gooey.gooey.json +0 -963
- 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/defcon.console.d.ts +0 -24
- package/generated/defsave.defsave.d.ts +0 -31
- 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/nakama.nakama.d.ts +0 -594
- 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
- /package/generated/{deftest.deftest.d.ts → deftest.d.ts} +0 -0
- /package/generated/{starly.starly.d.ts → starly.d.ts} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"info": {
|
|
3
|
+
"namespace": "immutable",
|
|
4
|
+
"brief": "",
|
|
5
|
+
"description": ""
|
|
6
|
+
},
|
|
7
|
+
"elements": [
|
|
8
|
+
{
|
|
9
|
+
"type": "FUNCTION",
|
|
10
|
+
"name": "is_immutable",
|
|
11
|
+
"brief": "Checks if a given table `table_to_check` is immutable",
|
|
12
|
+
"description": "Checks if a given table `table_to_check` is immutable",
|
|
13
|
+
"parameters": [
|
|
14
|
+
{
|
|
15
|
+
"name": "table_to_check",
|
|
16
|
+
"doc": "@table to check if is immutable",
|
|
17
|
+
"types": [
|
|
18
|
+
"LuaTable | Immutable"
|
|
19
|
+
],
|
|
20
|
+
"is_optional": "False",
|
|
21
|
+
"is_vararg": "False"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"returnvalues": [
|
|
25
|
+
{
|
|
26
|
+
"name": "",
|
|
27
|
+
"doc": "@true if table is immutable, false otherwise",
|
|
28
|
+
"types": [
|
|
29
|
+
"boolean"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"type": "FUNCTION",
|
|
36
|
+
"name": "make",
|
|
37
|
+
"brief": "Makes a given table immutable, including nested tables",
|
|
38
|
+
"description": "Makes a given table immutable, including nested tables",
|
|
39
|
+
"parameters": [
|
|
40
|
+
{
|
|
41
|
+
"name": "original_table",
|
|
42
|
+
"doc": "@table to convert",
|
|
43
|
+
"types": [
|
|
44
|
+
"LuaTable | Immutable"
|
|
45
|
+
],
|
|
46
|
+
"is_optional": "False",
|
|
47
|
+
"is_vararg": "False"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"returnvalues": [
|
|
51
|
+
{
|
|
52
|
+
"name": "",
|
|
53
|
+
"doc": "@converted table",
|
|
54
|
+
"types": [
|
|
55
|
+
"Immutable"
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "TYPEDEF",
|
|
62
|
+
"name": "Immutable"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -7,7 +7,81 @@
|
|
|
7
7
|
"elements": [
|
|
8
8
|
{
|
|
9
9
|
"type": "TYPEDEF",
|
|
10
|
-
"name": "AccelerometerInstance"
|
|
10
|
+
"name": "AccelerometerInstance",
|
|
11
|
+
"properties": [
|
|
12
|
+
{
|
|
13
|
+
"name": "reset",
|
|
14
|
+
"brief": "",
|
|
15
|
+
"description": "",
|
|
16
|
+
"types": [
|
|
17
|
+
"() => void"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "calibrate",
|
|
22
|
+
"brief": "",
|
|
23
|
+
"description": "",
|
|
24
|
+
"types": [
|
|
25
|
+
"() => void"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "on_input",
|
|
30
|
+
"brief": "",
|
|
31
|
+
"description": "",
|
|
32
|
+
"types": [
|
|
33
|
+
"(action: { acc_x: number; acc_y: number; acc_z: number; }) => void"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "calibrated",
|
|
38
|
+
"brief": "",
|
|
39
|
+
"description": "",
|
|
40
|
+
"types": [
|
|
41
|
+
"() => Vector3"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "adjusted",
|
|
46
|
+
"brief": "",
|
|
47
|
+
"description": "",
|
|
48
|
+
"types": [
|
|
49
|
+
"() => Vector3"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "average",
|
|
54
|
+
"brief": "",
|
|
55
|
+
"description": "",
|
|
56
|
+
"types": [
|
|
57
|
+
"() => Vector3"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "zero",
|
|
62
|
+
"brief": "",
|
|
63
|
+
"description": "",
|
|
64
|
+
"types": [
|
|
65
|
+
"() => Vector3"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "latest",
|
|
70
|
+
"brief": "",
|
|
71
|
+
"description": "",
|
|
72
|
+
"types": [
|
|
73
|
+
"() => Vector3"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "on_window_resized",
|
|
78
|
+
"brief": "",
|
|
79
|
+
"description": "",
|
|
80
|
+
"types": [
|
|
81
|
+
"(width: number, height: number) => void"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
11
85
|
},
|
|
12
86
|
{
|
|
13
87
|
"type": "FUNCTION",
|
package/api-doc/in.button.json
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
{
|
|
9
9
|
"type": "VARIABLE",
|
|
10
10
|
"name": "TOUCH",
|
|
11
|
+
"brief": "",
|
|
12
|
+
"description": "",
|
|
11
13
|
"types": [
|
|
12
14
|
"Hash"
|
|
13
15
|
]
|
|
@@ -15,24 +17,27 @@
|
|
|
15
17
|
{
|
|
16
18
|
"type": "FUNCTION",
|
|
17
19
|
"name": "acquire",
|
|
18
|
-
"brief": "",
|
|
19
|
-
"description": "",
|
|
20
|
+
"brief": "Convenience function to acquire input focus",
|
|
21
|
+
"description": "Convenience function to acquire input focus",
|
|
22
|
+
"docSource": "upstream",
|
|
20
23
|
"parameters": [],
|
|
21
24
|
"returnvalues": []
|
|
22
25
|
},
|
|
23
26
|
{
|
|
24
27
|
"type": "FUNCTION",
|
|
25
28
|
"name": "release",
|
|
26
|
-
"brief": "",
|
|
27
|
-
"description": "",
|
|
29
|
+
"brief": "Convenience function to release input focus",
|
|
30
|
+
"description": "Convenience function to release input focus",
|
|
31
|
+
"docSource": "upstream",
|
|
28
32
|
"parameters": [],
|
|
29
33
|
"returnvalues": []
|
|
30
34
|
},
|
|
31
35
|
{
|
|
32
36
|
"type": "FUNCTION",
|
|
33
37
|
"name": "register",
|
|
34
|
-
"brief": "",
|
|
35
|
-
"description": "",
|
|
38
|
+
"brief": "Register a node and a callback to invoke when it is clicked",
|
|
39
|
+
"description": "Register a node and a callback to invoke when it is clicked",
|
|
40
|
+
"docSource": "upstream",
|
|
36
41
|
"parameters": [
|
|
37
42
|
{
|
|
38
43
|
"name": "node_or_string",
|
|
@@ -64,8 +69,9 @@
|
|
|
64
69
|
{
|
|
65
70
|
"type": "FUNCTION",
|
|
66
71
|
"name": "unregister",
|
|
67
|
-
"brief": "",
|
|
68
|
-
"description": "",
|
|
72
|
+
"brief": "Unregister a previously registered node or all nodes",
|
|
73
|
+
"description": "Unregister a previously registered node or all nodes\nregistered from the calling script",
|
|
74
|
+
"docSource": "upstream",
|
|
69
75
|
"parameters": [
|
|
70
76
|
{
|
|
71
77
|
"name": "node_or_string",
|
|
@@ -114,8 +120,9 @@
|
|
|
114
120
|
{
|
|
115
121
|
"type": "FUNCTION",
|
|
116
122
|
"name": "on_input",
|
|
117
|
-
"brief": "",
|
|
118
|
-
"description": "",
|
|
123
|
+
"brief": "Forward on_input calls to this function to detect input",
|
|
124
|
+
"description": "Forward on_input calls to this function to detect input\nfor registered nodes",
|
|
125
|
+
"docSource": "upstream",
|
|
119
126
|
"parameters": [
|
|
120
127
|
{
|
|
121
128
|
"name": "action_id",
|
package/api-doc/in.cursor.json
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
{
|
|
9
9
|
"type": "VARIABLE",
|
|
10
10
|
"name": "OVER",
|
|
11
|
+
"brief": "",
|
|
12
|
+
"description": "",
|
|
11
13
|
"types": [
|
|
12
14
|
"Hash"
|
|
13
15
|
]
|
|
@@ -15,6 +17,8 @@
|
|
|
15
17
|
{
|
|
16
18
|
"type": "VARIABLE",
|
|
17
19
|
"name": "OUT",
|
|
20
|
+
"brief": "",
|
|
21
|
+
"description": "",
|
|
18
22
|
"types": [
|
|
19
23
|
"Hash"
|
|
20
24
|
]
|
|
@@ -22,6 +26,8 @@
|
|
|
22
26
|
{
|
|
23
27
|
"type": "VARIABLE",
|
|
24
28
|
"name": "PRESSED",
|
|
29
|
+
"brief": "",
|
|
30
|
+
"description": "",
|
|
25
31
|
"types": [
|
|
26
32
|
"Hash"
|
|
27
33
|
]
|
|
@@ -29,6 +35,8 @@
|
|
|
29
35
|
{
|
|
30
36
|
"type": "VARIABLE",
|
|
31
37
|
"name": "RELEASED",
|
|
38
|
+
"brief": "",
|
|
39
|
+
"description": "",
|
|
32
40
|
"types": [
|
|
33
41
|
"Hash"
|
|
34
42
|
]
|
|
@@ -36,6 +44,8 @@
|
|
|
36
44
|
{
|
|
37
45
|
"type": "VARIABLE",
|
|
38
46
|
"name": "DRAG",
|
|
47
|
+
"brief": "",
|
|
48
|
+
"description": "",
|
|
39
49
|
"types": [
|
|
40
50
|
"Hash"
|
|
41
51
|
]
|
|
@@ -43,6 +53,8 @@
|
|
|
43
53
|
{
|
|
44
54
|
"type": "VARIABLE",
|
|
45
55
|
"name": "DRAG_END",
|
|
56
|
+
"brief": "",
|
|
57
|
+
"description": "",
|
|
46
58
|
"types": [
|
|
47
59
|
"Hash"
|
|
48
60
|
]
|
|
@@ -50,6 +62,8 @@
|
|
|
50
62
|
{
|
|
51
63
|
"type": "VARIABLE",
|
|
52
64
|
"name": "DRAG_START",
|
|
65
|
+
"brief": "",
|
|
66
|
+
"description": "",
|
|
53
67
|
"types": [
|
|
54
68
|
"Hash"
|
|
55
69
|
]
|
|
@@ -57,6 +71,8 @@
|
|
|
57
71
|
{
|
|
58
72
|
"type": "VARIABLE",
|
|
59
73
|
"name": "CLICKED",
|
|
74
|
+
"brief": "",
|
|
75
|
+
"description": "",
|
|
60
76
|
"types": [
|
|
61
77
|
"Hash"
|
|
62
78
|
]
|
|
@@ -64,6 +80,8 @@
|
|
|
64
80
|
{
|
|
65
81
|
"type": "VARIABLE",
|
|
66
82
|
"name": "RESET",
|
|
83
|
+
"brief": "",
|
|
84
|
+
"description": "",
|
|
67
85
|
"types": [
|
|
68
86
|
"Hash"
|
|
69
87
|
]
|
|
@@ -71,6 +89,8 @@
|
|
|
71
89
|
{
|
|
72
90
|
"type": "VARIABLE",
|
|
73
91
|
"name": "START_DRAGGING",
|
|
92
|
+
"brief": "",
|
|
93
|
+
"description": "",
|
|
74
94
|
"types": [
|
|
75
95
|
"Hash"
|
|
76
96
|
]
|
|
@@ -78,6 +98,8 @@
|
|
|
78
98
|
{
|
|
79
99
|
"type": "VARIABLE",
|
|
80
100
|
"name": "DRAG_MODE_HORIZONTAL",
|
|
101
|
+
"brief": "",
|
|
102
|
+
"description": "",
|
|
81
103
|
"types": [
|
|
82
104
|
"Hash"
|
|
83
105
|
]
|
|
@@ -85,6 +107,8 @@
|
|
|
85
107
|
{
|
|
86
108
|
"type": "VARIABLE",
|
|
87
109
|
"name": "DRAG_MODE_VERTICAL",
|
|
110
|
+
"brief": "",
|
|
111
|
+
"description": "",
|
|
88
112
|
"types": [
|
|
89
113
|
"Hash"
|
|
90
114
|
]
|
|
@@ -92,6 +116,8 @@
|
|
|
92
116
|
{
|
|
93
117
|
"type": "VARIABLE",
|
|
94
118
|
"name": "DRAG_MODE_FREE",
|
|
119
|
+
"brief": "",
|
|
120
|
+
"description": "",
|
|
95
121
|
"types": [
|
|
96
122
|
"Hash"
|
|
97
123
|
]
|