@defold-typescript/types 0.34.0 → 0.36.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-signatures.json +9547 -186
- package/api-targets.json +9 -66
- package/examples/translations.json +6 -6
- package/generated/buffer.d.ts +2 -2
- package/generated/collectionfactory.d.ts +2 -2
- package/generated/factory.d.ts +13 -12
- package/generated/gui.d.ts +23 -23
- package/generated/kinds/gui-script.d.ts +0 -4
- package/generated/kinds/render-script.d.ts +1 -4
- package/generated/kinds/script.d.ts +0 -4
- package/generated/model.d.ts +2 -2
- package/generated/profiler.d.ts +2 -4
- package/generated/render.d.ts +7 -155
- package/generated/sys.d.ts +1 -1
- package/generated/versions/defold-1.12.4/buffer.d.ts +2 -2
- package/generated/versions/defold-1.12.4/collectionfactory.d.ts +2 -2
- package/generated/versions/defold-1.12.4/factory.d.ts +13 -12
- package/generated/versions/defold-1.12.4/gui.d.ts +23 -23
- package/generated/versions/defold-1.12.4/index.d.ts +9 -4
- package/generated/versions/defold-1.12.4/model.d.ts +2 -2
- package/generated/versions/defold-1.12.4/profiler.d.ts +2 -4
- package/generated/versions/defold-1.12.4/render.d.ts +7 -155
- package/generated/versions/defold-1.12.4/sys.d.ts +1 -1
- package/generated/versions/defold-1.12.4/vmath.d.ts +0 -19
- package/generated/versions/defold-1.12.4/window.d.ts +2 -4
- package/generated/versions/defold-1.12.4/zlib.d.ts +2 -1
- package/generated/versions/defold-1.13.0/buffer.d.ts +2 -2
- package/generated/versions/defold-1.13.0/collectionfactory.d.ts +2 -2
- package/generated/versions/defold-1.13.0/factory.d.ts +13 -12
- package/generated/versions/defold-1.13.0/gui.d.ts +23 -23
- package/generated/versions/defold-1.13.0/index.d.ts +9 -4
- package/generated/versions/defold-1.13.0/model.d.ts +2 -2
- package/generated/versions/defold-1.13.0/profiler.d.ts +2 -4
- package/generated/versions/defold-1.13.0/render.d.ts +7 -155
- package/generated/versions/defold-1.13.0/sys.d.ts +1 -1
- package/generated/versions/defold-1.13.0/vmath.d.ts +0 -19
- package/generated/versions/defold-1.13.0/window.d.ts +2 -4
- package/generated/versions/defold-1.13.0/zlib.d.ts +2 -1
- package/generated/vmath.d.ts +0 -19
- package/generated/window.d.ts +2 -4
- package/generated/zlib.d.ts +2 -1
- package/index.d.ts +2 -4
- package/package.json +7 -2
- package/scripts/extension-goldens.ts +23 -0
- package/scripts/generate-api-signatures.ts +72 -8
- package/scripts/materialize-version.ts +15 -1
- package/scripts/regen.ts +109 -27
- package/scripts/signature-store-fs.ts +1 -0
- package/scripts/sync-api-docs.ts +5 -61
- package/src/emit-dts.ts +359 -58
- package/src/index.ts +1 -0
- package/src/optional-correction-provenance.ts +13 -2
- package/src/render-overloads.d.ts +46 -0
- package/src/vmath-overloads.d.ts +19 -0
- package/generated/iac.d.ts +0 -18
- package/generated/iap.d.ts +0 -60
- package/generated/push.d.ts +0 -66
- package/generated/versions/defold-1.12.4/iac.d.ts +0 -18
- package/generated/versions/defold-1.12.4/iap.d.ts +0 -60
- package/generated/versions/defold-1.12.4/push.d.ts +0 -66
- package/generated/versions/defold-1.12.4/webview.d.ts +0 -71
- package/generated/versions/defold-1.13.0/iac.d.ts +0 -18
- package/generated/versions/defold-1.13.0/iap.d.ts +0 -60
- package/generated/versions/defold-1.13.0/push.d.ts +0 -66
- package/generated/versions/defold-1.13.0/webview.d.ts +0 -71
- package/generated/webview.d.ts +0 -71
- package/scripts/fidelity-audit.ts +0 -684
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/** @noSelfInFile */
|
|
2
|
-
declare global {
|
|
3
|
-
/**
|
|
4
|
-
* Functions and constants for interacting with webview APIs
|
|
5
|
-
*/
|
|
6
|
-
namespace webview {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a webview instance. It can show HTML pages as well as evaluate Javascript. The view remains hidden until the first call. There can exist a maximum of 4 webviews at the same time.
|
|
9
|
-
* On iOS, the callback will never get a `webview.CALLBACK_RESULT_EVAL_ERROR`, due to the iOS SDK implementation."
|
|
10
|
-
*
|
|
11
|
-
* @param callback - A callback which receives info about finished requests taking the following parameters:
|
|
12
|
-
* @returns The id number of the webview
|
|
13
|
-
*/
|
|
14
|
-
function create(callback: (...args: unknown[]) => unknown): number;
|
|
15
|
-
/**
|
|
16
|
-
* Destroys an instance of a webview.
|
|
17
|
-
*
|
|
18
|
-
* @param webview_id - The webview id (returned by the `webview.create()` call)
|
|
19
|
-
*/
|
|
20
|
-
function destroy(webview_id: number): void;
|
|
21
|
-
/**
|
|
22
|
-
* Evaluates JavaScript within the context of the currently loaded page (if any). Once the request is done, the callback (registered in `webview.create()`) is invoked. The callback will get the result in the `data["result"]` field.
|
|
23
|
-
*
|
|
24
|
-
* @param webview_id - The webview id
|
|
25
|
-
* @param code - The JavaScript code to evaluate
|
|
26
|
-
* @returns The id number of the request
|
|
27
|
-
*/
|
|
28
|
-
function eval(webview_id: number, code: string): number;
|
|
29
|
-
/**
|
|
30
|
-
* Returns the visibility state of the webview.
|
|
31
|
-
*
|
|
32
|
-
* @param webview_id - The webview id
|
|
33
|
-
* @returns Returns `0` if not visible, `1` if it is visible
|
|
34
|
-
*/
|
|
35
|
-
function is_visible(webview_id: number): number;
|
|
36
|
-
/**
|
|
37
|
-
* Opens a web page in the webview, using HTML data. Once the request is done, the callback (registered in `webview.create()`) is invoked.
|
|
38
|
-
*
|
|
39
|
-
* @param webview_id - The webview id
|
|
40
|
-
* @param html - The HTML data to display
|
|
41
|
-
* @param options - A table of options for the request. See `webview.open()`
|
|
42
|
-
*/
|
|
43
|
-
function open_raw(webview_id: number, html: string, options: Record<string | number, unknown>): void;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the position and size of the webview
|
|
46
|
-
*
|
|
47
|
-
* @param webview_id - The webview id
|
|
48
|
-
* @param x - The x position of the webview
|
|
49
|
-
* @param y - The y position of the webview
|
|
50
|
-
* @param width - The width of the webview (-1 to match screen width)
|
|
51
|
-
* @param height - The height of the webview (-1 to match screen height)
|
|
52
|
-
*/
|
|
53
|
-
function set_position(webview_id: number, x: number, y: number, width: number, height: number): void;
|
|
54
|
-
/**
|
|
55
|
-
* Set transparency of webview background
|
|
56
|
-
*
|
|
57
|
-
* @param webview_id - The webview id
|
|
58
|
-
* @param transparent - If `true`, the webview background becomes transparent, otherwise opaque.
|
|
59
|
-
*/
|
|
60
|
-
function set_transparent(webview_id: number, transparent: boolean): void;
|
|
61
|
-
/**
|
|
62
|
-
* Shows or hides a webview
|
|
63
|
-
*
|
|
64
|
-
* @param webview_id - The webview id
|
|
65
|
-
* @param visible - If `0`, hides the webview. If non zero, shows the view
|
|
66
|
-
*/
|
|
67
|
-
function set_visible(webview_id: number, visible: number): void;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {};
|
package/generated/webview.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/** @noSelfInFile */
|
|
2
|
-
declare global {
|
|
3
|
-
/**
|
|
4
|
-
* Functions and constants for interacting with webview APIs
|
|
5
|
-
*/
|
|
6
|
-
namespace webview {
|
|
7
|
-
/**
|
|
8
|
-
* Creates a webview instance. It can show HTML pages as well as evaluate Javascript. The view remains hidden until the first call. There can exist a maximum of 4 webviews at the same time.
|
|
9
|
-
* On iOS, the callback will never get a `webview.CALLBACK_RESULT_EVAL_ERROR`, due to the iOS SDK implementation."
|
|
10
|
-
*
|
|
11
|
-
* @param callback - A callback which receives info about finished requests taking the following parameters:
|
|
12
|
-
* @returns The id number of the webview
|
|
13
|
-
*/
|
|
14
|
-
function create(callback: (...args: unknown[]) => unknown): number;
|
|
15
|
-
/**
|
|
16
|
-
* Destroys an instance of a webview.
|
|
17
|
-
*
|
|
18
|
-
* @param webview_id - The webview id (returned by the `webview.create()` call)
|
|
19
|
-
*/
|
|
20
|
-
function destroy(webview_id: number): void;
|
|
21
|
-
/**
|
|
22
|
-
* Evaluates JavaScript within the context of the currently loaded page (if any). Once the request is done, the callback (registered in `webview.create()`) is invoked. The callback will get the result in the `data["result"]` field.
|
|
23
|
-
*
|
|
24
|
-
* @param webview_id - The webview id
|
|
25
|
-
* @param code - The JavaScript code to evaluate
|
|
26
|
-
* @returns The id number of the request
|
|
27
|
-
*/
|
|
28
|
-
function eval(webview_id: number, code: string): number;
|
|
29
|
-
/**
|
|
30
|
-
* Returns the visibility state of the webview.
|
|
31
|
-
*
|
|
32
|
-
* @param webview_id - The webview id
|
|
33
|
-
* @returns Returns `0` if not visible, `1` if it is visible
|
|
34
|
-
*/
|
|
35
|
-
function is_visible(webview_id: number): number;
|
|
36
|
-
/**
|
|
37
|
-
* Opens a web page in the webview, using HTML data. Once the request is done, the callback (registered in `webview.create()`) is invoked.
|
|
38
|
-
*
|
|
39
|
-
* @param webview_id - The webview id
|
|
40
|
-
* @param html - The HTML data to display
|
|
41
|
-
* @param options - A table of options for the request. See `webview.open()`
|
|
42
|
-
*/
|
|
43
|
-
function open_raw(webview_id: number, html: string, options: Record<string | number, unknown>): void;
|
|
44
|
-
/**
|
|
45
|
-
* Sets the position and size of the webview
|
|
46
|
-
*
|
|
47
|
-
* @param webview_id - The webview id
|
|
48
|
-
* @param x - The x position of the webview
|
|
49
|
-
* @param y - The y position of the webview
|
|
50
|
-
* @param width - The width of the webview (-1 to match screen width)
|
|
51
|
-
* @param height - The height of the webview (-1 to match screen height)
|
|
52
|
-
*/
|
|
53
|
-
function set_position(webview_id: number, x: number, y: number, width: number, height: number): void;
|
|
54
|
-
/**
|
|
55
|
-
* Set transparency of webview background
|
|
56
|
-
*
|
|
57
|
-
* @param webview_id - The webview id
|
|
58
|
-
* @param transparent - If `true`, the webview background becomes transparent, otherwise opaque.
|
|
59
|
-
*/
|
|
60
|
-
function set_transparent(webview_id: number, transparent: boolean): void;
|
|
61
|
-
/**
|
|
62
|
-
* Shows or hides a webview
|
|
63
|
-
*
|
|
64
|
-
* @param webview_id - The webview id
|
|
65
|
-
* @param visible - If `0`, hides the webview. If non zero, shows the view
|
|
66
|
-
*/
|
|
67
|
-
function set_visible(webview_id: number, visible: number): void;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export {};
|