@defold-typescript/types 0.19.3 → 0.20.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-availability.json +2755 -0
- package/api-migrations.json +31 -0
- package/api-signatures.json +2324 -0
- package/api-targets.json +493 -45
- package/generated/b2d.d.ts +6 -0
- package/generated/b2d_body.d.ts +329 -1
- package/generated/b2d_chain.d.ts +106 -0
- package/generated/b2d_fixture.d.ts +155 -0
- package/generated/b2d_joint.d.ts +823 -0
- package/generated/b2d_shape.d.ts +215 -0
- package/generated/b2d_world.d.ts +314 -0
- package/generated/builtin-messages.d.ts +18 -0
- package/generated/camera.d.ts +62 -5
- package/generated/compute.d.ts +306 -0
- package/generated/go.d.ts +29 -4
- package/generated/graphics.d.ts +95 -0
- package/generated/gui.d.ts +1 -3
- package/generated/json.d.ts +2 -2
- package/generated/kinds/gui-script.d.ts +7 -0
- package/generated/kinds/render-script.d.ts +7 -0
- package/generated/kinds/script.d.ts +7 -0
- package/generated/label.d.ts +1 -1
- package/generated/liveupdate.d.ts +22 -4
- package/generated/material.d.ts +444 -0
- package/generated/model.d.ts +46 -5
- package/generated/physics.d.ts +1 -3
- package/generated/profiler.d.ts +2 -3
- package/generated/render.d.ts +25 -9
- package/generated/resource.d.ts +2 -2
- package/generated/sprite.d.ts +15 -1
- package/generated/tilemap.d.ts +14 -0
- package/generated/versions/defold-1.12.4/b2d.d.ts +27 -0
- package/generated/versions/defold-1.12.4/b2d_body.d.ts +348 -0
- package/generated/versions/defold-1.12.4/buffer.d.ts +176 -0
- package/generated/versions/defold-1.12.4/camera.d.ts +245 -0
- package/generated/versions/defold-1.12.4/collectionfactory.d.ts +146 -0
- package/generated/versions/defold-1.12.4/collectionproxy.d.ts +71 -0
- package/generated/versions/defold-1.12.4/crash.d.ts +143 -0
- package/generated/versions/defold-1.12.4/factory.d.ts +123 -0
- package/generated/versions/defold-1.12.4/font.d.ts +81 -0
- package/generated/versions/defold-1.12.4/go.d.ts +1029 -0
- package/generated/versions/defold-1.12.4/graphics.d.ts +226 -0
- package/generated/versions/defold-1.12.4/gui.d.ts +2372 -0
- package/generated/versions/defold-1.12.4/html5.d.ts +53 -0
- package/generated/versions/defold-1.12.4/http.d.ts +84 -0
- package/generated/versions/defold-1.12.4/iac.d.ts +18 -0
- package/generated/versions/defold-1.12.4/iap.d.ts +60 -0
- package/generated/versions/defold-1.12.4/image.d.ts +139 -0
- package/generated/versions/defold-1.12.4/index.d.ts +41 -0
- package/generated/versions/defold-1.12.4/json.d.ts +76 -0
- package/generated/versions/defold-1.12.4/label.d.ts +94 -0
- package/generated/versions/defold-1.12.4/liveupdate.d.ts +122 -0
- package/generated/versions/defold-1.12.4/model.d.ts +205 -0
- package/generated/versions/defold-1.12.4/msg.d.ts +10 -0
- package/generated/versions/defold-1.12.4/particlefx.d.ts +166 -0
- package/generated/versions/defold-1.12.4/physics.d.ts +547 -0
- package/generated/versions/defold-1.12.4/profiler.d.ts +234 -0
- package/generated/versions/defold-1.12.4/push.d.ts +66 -0
- package/generated/versions/defold-1.12.4/render.d.ts +1149 -0
- package/generated/versions/defold-1.12.4/resource.d.ts +1518 -0
- package/generated/versions/defold-1.12.4/socket.d.ts +795 -0
- package/generated/versions/defold-1.12.4/sound.d.ts +291 -0
- package/generated/versions/defold-1.12.4/sprite.d.ts +143 -0
- package/generated/versions/defold-1.12.4/sys.d.ts +695 -0
- package/generated/versions/defold-1.12.4/tilemap.d.ts +181 -0
- package/generated/versions/defold-1.12.4/timer.d.ts +114 -0
- package/generated/versions/defold-1.12.4/types.d.ts +61 -0
- package/generated/versions/defold-1.12.4/vmath.d.ts +806 -0
- package/generated/versions/defold-1.12.4/webview.d.ts +68 -0
- package/generated/versions/defold-1.12.4/window.d.ts +198 -0
- package/generated/versions/defold-1.12.4/zlib.d.ts +40 -0
- package/index.d.ts +22 -0
- package/package.json +8 -1
- package/scripts/fidelity-audit.ts +69 -12
- package/scripts/fidelity-baseline.json +56 -0
- package/scripts/generate-api-availability.ts +139 -0
- package/scripts/generate-api-signatures.ts +66 -0
- package/scripts/import-defold-release.ts +480 -0
- package/scripts/regen.ts +53 -6
- package/scripts/sync-api-docs.ts +89 -41
- package/src/api-availability.ts +0 -0
- package/src/core-types.ts +9 -0
- package/src/emit-dts.ts +674 -17
- package/src/emit-messages.ts +72 -2
- package/src/index.ts +26 -1
- package/src/lifecycle.ts +43 -2
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Url } from "../../../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
/**
|
|
6
|
+
* Functions and messages used to manipulate tile map components.
|
|
7
|
+
*/
|
|
8
|
+
namespace tilemap {
|
|
9
|
+
/**
|
|
10
|
+
* flip tile horizontally
|
|
11
|
+
*/
|
|
12
|
+
const H_FLIP: number & { readonly __brand: "tilemap.H_FLIP" };
|
|
13
|
+
/**
|
|
14
|
+
* rotate tile 180 degrees clockwise
|
|
15
|
+
*/
|
|
16
|
+
const ROTATE_180: number & { readonly __brand: "tilemap.ROTATE_180" };
|
|
17
|
+
/**
|
|
18
|
+
* rotate tile 270 degrees clockwise
|
|
19
|
+
*/
|
|
20
|
+
const ROTATE_270: number & { readonly __brand: "tilemap.ROTATE_270" };
|
|
21
|
+
/**
|
|
22
|
+
* rotate tile 90 degrees clockwise
|
|
23
|
+
*/
|
|
24
|
+
const ROTATE_90: number & { readonly __brand: "tilemap.ROTATE_90" };
|
|
25
|
+
/**
|
|
26
|
+
* flip tile vertically
|
|
27
|
+
*/
|
|
28
|
+
const V_FLIP: number & { readonly __brand: "tilemap.V_FLIP" };
|
|
29
|
+
/**
|
|
30
|
+
* Get the bounds for a tile map. This function returns multiple values:
|
|
31
|
+
* The lower left corner index x and y coordinates (1-indexed),
|
|
32
|
+
* the tile map width and the tile map height.
|
|
33
|
+
* The resulting values take all tile map layers into account, meaning that
|
|
34
|
+
* the bounds are calculated as if all layers were collapsed into one.
|
|
35
|
+
*
|
|
36
|
+
* @param url - the tile map
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* // get the level bounds.
|
|
40
|
+
* const [x, y, w, h] = tilemap.get_bounds("/level#tilemap");
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function get_bounds(url: string | Hash | Url): LuaMultiReturn<[number, number, number, number]>;
|
|
44
|
+
/**
|
|
45
|
+
* Get the tile set at the specified position in the tilemap.
|
|
46
|
+
* The position is identified by the tile index starting at origin
|
|
47
|
+
* with index 1, 1. (see tilemap.set_tile())
|
|
48
|
+
* Which tile map and layer to query is identified by the URL and the
|
|
49
|
+
* layer name parameters.
|
|
50
|
+
*
|
|
51
|
+
* @param url - the tile map
|
|
52
|
+
* @param layer - name of the layer for the tile
|
|
53
|
+
* @param x - x-coordinate of the tile
|
|
54
|
+
* @param y - y-coordinate of the tile
|
|
55
|
+
* @returns index of the tile
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* // get the tile under the player.
|
|
59
|
+
* const tileno = tilemap.get_tile("/level#tilemap", "foreground", self.player_x, self.player_y);
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
function get_tile(url: string | Hash | Url, layer: string | Hash, x: number, y: number): number;
|
|
63
|
+
/**
|
|
64
|
+
* Get the tile information at the specified position in the tilemap.
|
|
65
|
+
* The position is identified by the tile index starting at origin
|
|
66
|
+
* with index 1, 1. (see tilemap.set_tile())
|
|
67
|
+
* Which tile map and layer to query is identified by the URL and the
|
|
68
|
+
* layer name parameters.
|
|
69
|
+
*
|
|
70
|
+
* @param url - the tile map
|
|
71
|
+
* @param layer - name of the layer for the tile
|
|
72
|
+
* @param x - x-coordinate of the tile
|
|
73
|
+
* @param y - y-coordinate of the tile
|
|
74
|
+
* @returns index of the tile
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* // get the tile under the player.
|
|
78
|
+
* const tile_info = tilemap.get_tile_info("/level#tilemap", "foreground", self.player_x, self.player_y);
|
|
79
|
+
* pprint(tile_info);
|
|
80
|
+
* // {
|
|
81
|
+
* // index = 0,
|
|
82
|
+
* // h_flip = false,
|
|
83
|
+
* // v_flip = true,
|
|
84
|
+
* // rotate_90 = false
|
|
85
|
+
* // }
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
function get_tile_info(url: string | Hash | Url, layer: string | Hash, x: number, y: number): { index: number; h_flip: boolean; v_flip: boolean; rotate_90: boolean };
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves all the tiles for the specified layer in the tilemap.
|
|
91
|
+
* It returns a table of rows where the keys are the
|
|
92
|
+
* tile positions (see tilemap.get_bounds()).
|
|
93
|
+
* You can iterate it using `tiles[row_index][column_index]`.
|
|
94
|
+
*
|
|
95
|
+
* @param url - the tilemap
|
|
96
|
+
* @param layer - the name of the layer for the tiles
|
|
97
|
+
* @returns a table of rows representing the layer
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const [left, bottom, columns_count, rows_count] = tilemap.get_bounds("#tilemap");
|
|
101
|
+
* const tiles = tilemap.get_tiles("#tilemap", "layer");
|
|
102
|
+
* let tile = 0;
|
|
103
|
+
* let count = 0;
|
|
104
|
+
* for (let row_index = bottom; row_index <= bottom + rows_count - 1; row_index++) {
|
|
105
|
+
* for (let column_index = left; column_index <= left + columns_count - 1; column_index++) {
|
|
106
|
+
* tile = tiles[row_index][column_index];
|
|
107
|
+
* count = count + 1;
|
|
108
|
+
* }
|
|
109
|
+
* }
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
function get_tiles(url: string | Hash | Url, layer: string | Hash): LuaMap<number, LuaMap<number, number>>;
|
|
113
|
+
/**
|
|
114
|
+
* Replace a tile in a tile map with a new tile.
|
|
115
|
+
* The coordinates of the tiles are indexed so that the "first" tile just
|
|
116
|
+
* above and to the right of origin has coordinates 1,1.
|
|
117
|
+
* Tiles to the left of and below origin are indexed 0, -1, -2 and so forth.
|
|
118
|
+
*
|
|
119
|
+
* +-------+-------+------+------+
|
|
120
|
+
* | 0,3 | 1,3 | 2,3 | 3,3 |
|
|
121
|
+
* +-------+-------+------+------+
|
|
122
|
+
* | 0,2 | 1,2 | 2,2 | 3,2 |
|
|
123
|
+
* +-------+-------+------+------+
|
|
124
|
+
* | 0,1 | 1,1 | 2,1 | 3,1 |
|
|
125
|
+
* +-------O-------+------+------+
|
|
126
|
+
* | 0,0 | 1,0 | 2,0 | 3,0 |
|
|
127
|
+
* +-------+-------+------+------+
|
|
128
|
+
*
|
|
129
|
+
* The coordinates must be within the bounds of the tile map as it were created.
|
|
130
|
+
* That is, it is not possible to extend the size of a tile map by setting tiles outside the edges.
|
|
131
|
+
* To clear a tile, set the tile to number 0. Which tile map and layer to manipulate is identified by the URL and the layer name parameters.
|
|
132
|
+
* Transform bitmask is arithmetic sum of one or both FLIP constants (`tilemap.H_FLIP`, `tilemap.V_FLIP`) and/or one of ROTATION constants
|
|
133
|
+
* (`tilemap.ROTATE_90`, `tilemap.ROTATE_180`, `tilemap.ROTATE_270`).
|
|
134
|
+
* Flip always applies before rotation (clockwise).
|
|
135
|
+
*
|
|
136
|
+
* @param url - the tile map
|
|
137
|
+
* @param layer - name of the layer for the tile
|
|
138
|
+
* @param x - x-coordinate of the tile
|
|
139
|
+
* @param y - y-coordinate of the tile
|
|
140
|
+
* @param tile - index of new tile to set. 0 resets the cell
|
|
141
|
+
* @param transform_bitmask - optional flip and/or rotation should be applied to the tile
|
|
142
|
+
* @example
|
|
143
|
+
* ```ts
|
|
144
|
+
* // Clear the tile under the player.
|
|
145
|
+
* tilemap.set_tile("/level#tilemap", "foreground", self.player_x, self.player_y, 0);
|
|
146
|
+
*
|
|
147
|
+
* // Set tile with different combination of flip and rotation
|
|
148
|
+
* tilemap.set_tile("#tilemap", "layer1", x, y, 0, tilemap.H_FLIP + tilemap.V_FLIP + tilemap.ROTATE_90);
|
|
149
|
+
* tilemap.set_tile("#tilemap", "layer1", x, y, 0, tilemap.H_FLIP + tilemap.ROTATE_270);
|
|
150
|
+
* tilemap.set_tile("#tilemap", "layer1", x, y, 0, tilemap.V_FLIP + tilemap.H_FLIP);
|
|
151
|
+
* tilemap.set_tile("#tilemap", "layer1", x, y, 0, tilemap.ROTATE_180);
|
|
152
|
+
* ```
|
|
153
|
+
*/
|
|
154
|
+
function set_tile(url: string | Hash | Url, layer: string | Hash, x: number, y: number, tile: number, transform_bitmask?: number): void;
|
|
155
|
+
/**
|
|
156
|
+
* Sets the visibility of the tilemap layer
|
|
157
|
+
*
|
|
158
|
+
* @param url - the tile map
|
|
159
|
+
* @param layer - name of the layer for the tile
|
|
160
|
+
* @param visible - should the layer be visible
|
|
161
|
+
* @example
|
|
162
|
+
* ```ts
|
|
163
|
+
* // Disable rendering of the layer
|
|
164
|
+
* tilemap.set_visible("/level#tilemap", "foreground", false);
|
|
165
|
+
* ```
|
|
166
|
+
*/
|
|
167
|
+
function set_visible(url: string | Hash | Url, layer: string | Hash, visible: boolean): void;
|
|
168
|
+
interface properties {
|
|
169
|
+
/**
|
|
170
|
+
* The material used when rendering the tile map. The type of the property is hash.
|
|
171
|
+
*/
|
|
172
|
+
material: Hash;
|
|
173
|
+
/**
|
|
174
|
+
* The tile source used when rendering the tile map. The type of the property is hash.
|
|
175
|
+
*/
|
|
176
|
+
tile_source: Hash;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
declare global {
|
|
3
|
+
/**
|
|
4
|
+
* Timers allow you to set a delay and a callback to be called when the timer completes.
|
|
5
|
+
*
|
|
6
|
+
* The timers created with this API are updated with the collection timer where they
|
|
7
|
+
* are created. If you pause or speed up the collection (using `set_time_step`) it will
|
|
8
|
+
* also affect the new timer.
|
|
9
|
+
*/
|
|
10
|
+
namespace timer {
|
|
11
|
+
/**
|
|
12
|
+
* Indicates an invalid timer handle
|
|
13
|
+
*/
|
|
14
|
+
const INVALID_TIMER_HANDLE: number & { readonly __brand: "timer.INVALID_TIMER_HANDLE" };
|
|
15
|
+
/**
|
|
16
|
+
* You may cancel a timer from inside a timer callback.
|
|
17
|
+
* Cancelling a timer that is already executed or cancelled is safe.
|
|
18
|
+
*
|
|
19
|
+
* @param handle - the timer handle returned by timer.delay()
|
|
20
|
+
* @returns if the timer was active, false if the timer is already cancelled / complete
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* self.handle = timer.delay(1, true, () => print("print every second"));
|
|
24
|
+
* // ...
|
|
25
|
+
* const result = timer.cancel(self.handle);
|
|
26
|
+
* if (!result) {
|
|
27
|
+
* print("the timer is already cancelled");
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
function cancel(handle: number): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Adds a timer and returns a unique handle.
|
|
34
|
+
* You may create more timers from inside a timer callback.
|
|
35
|
+
* Using a delay of 0 will result in a timer that triggers at the next frame just before
|
|
36
|
+
* script update functions.
|
|
37
|
+
* If you want a timer that triggers on each frame, set delay to 0.0f and repeat to true.
|
|
38
|
+
* Timers created within a script will automatically die when the script is deleted.
|
|
39
|
+
*
|
|
40
|
+
* @param delay - time interval in seconds
|
|
41
|
+
* @param repeating - true = repeat timer until cancel, false = one-shot timer
|
|
42
|
+
* @param callback - timer callback function
|
|
43
|
+
*
|
|
44
|
+
* `self`
|
|
45
|
+
* object The current object
|
|
46
|
+
* `handle`
|
|
47
|
+
* number The handle of the timer
|
|
48
|
+
* `time_elapsed`
|
|
49
|
+
* number The elapsed time - on first trigger it is time since timer.delay call, otherwise time since last trigger
|
|
50
|
+
* @returns identifier for the create timer, returns timer.INVALID_TIMER_HANDLE if the timer can not be created
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* // A simple one-shot timer
|
|
54
|
+
* timer.delay(1, false, () => print("print in one second"));
|
|
55
|
+
*
|
|
56
|
+
* // Repetitive timer which canceled after 10 calls
|
|
57
|
+
* function call_every_second(self, handle, time_elapsed) {
|
|
58
|
+
* self.counter = self.counter + 1;
|
|
59
|
+
* print("Call #", self.counter);
|
|
60
|
+
* if (self.counter === 10) {
|
|
61
|
+
* timer.cancel(handle); // cancel timer after 10 calls
|
|
62
|
+
* }
|
|
63
|
+
* }
|
|
64
|
+
*
|
|
65
|
+
* self.counter = 0;
|
|
66
|
+
* timer.delay(1, true, call_every_second);
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
function delay(delay: number, repeating: boolean, callback: (self: unknown, handle: unknown, time_elapsed: unknown) => void): number;
|
|
70
|
+
/**
|
|
71
|
+
* Get information about timer.
|
|
72
|
+
*
|
|
73
|
+
* @param handle - the timer handle returned by timer.delay()
|
|
74
|
+
* @returns table or `nil` if timer is cancelled/completed. table with data in the following fields:
|
|
75
|
+
*
|
|
76
|
+
* `time_remaining`
|
|
77
|
+
* number Time remaining until the next time a timer.delay() fires.
|
|
78
|
+
* `delay`
|
|
79
|
+
* number Time interval.
|
|
80
|
+
* `repeating`
|
|
81
|
+
* boolean true = repeat timer until cancel, false = one-shot timer.
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* self.handle = timer.delay(1, true, () => print("print every second"));
|
|
85
|
+
* // ...
|
|
86
|
+
* const result = timer.get_info(self.handle);
|
|
87
|
+
* if (!result) {
|
|
88
|
+
* print("the timer is already cancelled or complete");
|
|
89
|
+
* } else {
|
|
90
|
+
* pprint(result); // delay, time_remaining, repeating
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
function get_info(handle: number): { time_remaining: number; delay: number; repeating: boolean } | unknown;
|
|
95
|
+
/**
|
|
96
|
+
* Manual triggering a callback for a timer.
|
|
97
|
+
*
|
|
98
|
+
* @param handle - the timer handle returned by timer.delay()
|
|
99
|
+
* @returns if the timer was active, false if the timer is already cancelled / complete
|
|
100
|
+
* @example
|
|
101
|
+
* ```ts
|
|
102
|
+
* self.handle = timer.delay(1, true, () => print("print every second or manually by timer.trigger"));
|
|
103
|
+
* // ...
|
|
104
|
+
* const result = timer.trigger(self.handle);
|
|
105
|
+
* if (!result) {
|
|
106
|
+
* print("the timer is already cancelled or complete");
|
|
107
|
+
* }
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
function trigger(handle: number): boolean;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** @noSelfInFile */
|
|
2
|
+
import type { Hash, Matrix4, Quaternion, Url, Vector, Vector3, Vector4 } from "../../../src/core-types";
|
|
3
|
+
|
|
4
|
+
declare global {
|
|
5
|
+
/**
|
|
6
|
+
* Functions for checking Defold userdata types.
|
|
7
|
+
*/
|
|
8
|
+
namespace types {
|
|
9
|
+
/**
|
|
10
|
+
* Check if passed type is hash.
|
|
11
|
+
*
|
|
12
|
+
* @param var_ - Variable to check type
|
|
13
|
+
* @returns True if passed type is hash
|
|
14
|
+
*/
|
|
15
|
+
function is_hash(var_: unknown): var_ is Hash;
|
|
16
|
+
/**
|
|
17
|
+
* Check if passed type is matrix4.
|
|
18
|
+
*
|
|
19
|
+
* @param var_ - Variable to check type
|
|
20
|
+
* @returns True if passed type is matrix4
|
|
21
|
+
*/
|
|
22
|
+
function is_matrix4(var_: unknown): var_ is Matrix4;
|
|
23
|
+
/**
|
|
24
|
+
* Check if passed type is quaternion.
|
|
25
|
+
*
|
|
26
|
+
* @param var_ - Variable to check type
|
|
27
|
+
* @returns True if passed type is quaternion
|
|
28
|
+
*/
|
|
29
|
+
function is_quat(var_: unknown): var_ is Quaternion;
|
|
30
|
+
/**
|
|
31
|
+
* Check if passed type is URL.
|
|
32
|
+
*
|
|
33
|
+
* @param var_ - Variable to check type
|
|
34
|
+
* @returns True if passed type is URL
|
|
35
|
+
*/
|
|
36
|
+
function is_url(var_: unknown): var_ is Url;
|
|
37
|
+
/**
|
|
38
|
+
* Check if passed type is vector.
|
|
39
|
+
*
|
|
40
|
+
* @param var_ - Variable to check type
|
|
41
|
+
* @returns True if passed type is vector
|
|
42
|
+
*/
|
|
43
|
+
function is_vector(var_: unknown): var_ is Vector;
|
|
44
|
+
/**
|
|
45
|
+
* Check if passed type is vector3.
|
|
46
|
+
*
|
|
47
|
+
* @param var_ - Variable to check type
|
|
48
|
+
* @returns True if passed type is vector3
|
|
49
|
+
*/
|
|
50
|
+
function is_vector3(var_: unknown): var_ is Vector3;
|
|
51
|
+
/**
|
|
52
|
+
* Check if passed type is vector4.
|
|
53
|
+
*
|
|
54
|
+
* @param var_ - Variable to check type
|
|
55
|
+
* @returns True if passed type is vector4
|
|
56
|
+
*/
|
|
57
|
+
function is_vector4(var_: unknown): var_ is Vector4;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export {};
|