@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.
Files changed (67) hide show
  1. package/api-signatures.json +9547 -186
  2. package/api-targets.json +9 -66
  3. package/examples/translations.json +6 -6
  4. package/generated/buffer.d.ts +2 -2
  5. package/generated/collectionfactory.d.ts +2 -2
  6. package/generated/factory.d.ts +13 -12
  7. package/generated/gui.d.ts +23 -23
  8. package/generated/kinds/gui-script.d.ts +0 -4
  9. package/generated/kinds/render-script.d.ts +1 -4
  10. package/generated/kinds/script.d.ts +0 -4
  11. package/generated/model.d.ts +2 -2
  12. package/generated/profiler.d.ts +2 -4
  13. package/generated/render.d.ts +7 -155
  14. package/generated/sys.d.ts +1 -1
  15. package/generated/versions/defold-1.12.4/buffer.d.ts +2 -2
  16. package/generated/versions/defold-1.12.4/collectionfactory.d.ts +2 -2
  17. package/generated/versions/defold-1.12.4/factory.d.ts +13 -12
  18. package/generated/versions/defold-1.12.4/gui.d.ts +23 -23
  19. package/generated/versions/defold-1.12.4/index.d.ts +9 -4
  20. package/generated/versions/defold-1.12.4/model.d.ts +2 -2
  21. package/generated/versions/defold-1.12.4/profiler.d.ts +2 -4
  22. package/generated/versions/defold-1.12.4/render.d.ts +7 -155
  23. package/generated/versions/defold-1.12.4/sys.d.ts +1 -1
  24. package/generated/versions/defold-1.12.4/vmath.d.ts +0 -19
  25. package/generated/versions/defold-1.12.4/window.d.ts +2 -4
  26. package/generated/versions/defold-1.12.4/zlib.d.ts +2 -1
  27. package/generated/versions/defold-1.13.0/buffer.d.ts +2 -2
  28. package/generated/versions/defold-1.13.0/collectionfactory.d.ts +2 -2
  29. package/generated/versions/defold-1.13.0/factory.d.ts +13 -12
  30. package/generated/versions/defold-1.13.0/gui.d.ts +23 -23
  31. package/generated/versions/defold-1.13.0/index.d.ts +9 -4
  32. package/generated/versions/defold-1.13.0/model.d.ts +2 -2
  33. package/generated/versions/defold-1.13.0/profiler.d.ts +2 -4
  34. package/generated/versions/defold-1.13.0/render.d.ts +7 -155
  35. package/generated/versions/defold-1.13.0/sys.d.ts +1 -1
  36. package/generated/versions/defold-1.13.0/vmath.d.ts +0 -19
  37. package/generated/versions/defold-1.13.0/window.d.ts +2 -4
  38. package/generated/versions/defold-1.13.0/zlib.d.ts +2 -1
  39. package/generated/vmath.d.ts +0 -19
  40. package/generated/window.d.ts +2 -4
  41. package/generated/zlib.d.ts +2 -1
  42. package/index.d.ts +2 -4
  43. package/package.json +7 -2
  44. package/scripts/extension-goldens.ts +23 -0
  45. package/scripts/generate-api-signatures.ts +72 -8
  46. package/scripts/materialize-version.ts +15 -1
  47. package/scripts/regen.ts +109 -27
  48. package/scripts/signature-store-fs.ts +1 -0
  49. package/scripts/sync-api-docs.ts +5 -61
  50. package/src/emit-dts.ts +359 -58
  51. package/src/index.ts +1 -0
  52. package/src/optional-correction-provenance.ts +13 -2
  53. package/src/render-overloads.d.ts +46 -0
  54. package/src/vmath-overloads.d.ts +19 -0
  55. package/generated/iac.d.ts +0 -18
  56. package/generated/iap.d.ts +0 -60
  57. package/generated/push.d.ts +0 -66
  58. package/generated/versions/defold-1.12.4/iac.d.ts +0 -18
  59. package/generated/versions/defold-1.12.4/iap.d.ts +0 -60
  60. package/generated/versions/defold-1.12.4/push.d.ts +0 -66
  61. package/generated/versions/defold-1.12.4/webview.d.ts +0 -71
  62. package/generated/versions/defold-1.13.0/iac.d.ts +0 -18
  63. package/generated/versions/defold-1.13.0/iap.d.ts +0 -60
  64. package/generated/versions/defold-1.13.0/push.d.ts +0 -66
  65. package/generated/versions/defold-1.13.0/webview.d.ts +0 -71
  66. package/generated/webview.d.ts +0 -71
  67. 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 {};
@@ -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 {};