@defold-typescript/types 0.5.5 → 0.7.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 (54) hide show
  1. package/README.md +2 -2
  2. package/api-targets.json +1 -1
  3. package/generated/b2d.d.ts +3 -0
  4. package/generated/buffer.d.ts +44 -38
  5. package/generated/builtin-messages.d.ts +1 -1
  6. package/generated/camera.d.ts +3 -0
  7. package/generated/collectionfactory.d.ts +47 -40
  8. package/generated/collectionproxy.d.ts +23 -18
  9. package/generated/crash.d.ts +3 -0
  10. package/generated/factory.d.ts +32 -24
  11. package/generated/go.d.ts +123 -124
  12. package/generated/graphics.d.ts +3 -0
  13. package/generated/gui.d.ts +303 -283
  14. package/generated/http.d.ts +26 -16
  15. package/generated/iac.d.ts +3 -0
  16. package/generated/iap.d.ts +6 -3
  17. package/generated/image.d.ts +30 -26
  18. package/generated/json.d.ts +36 -32
  19. package/generated/kinds/gui-script.d.ts +7 -5
  20. package/generated/kinds/render-script.d.ts +7 -5
  21. package/generated/kinds/script.d.ts +7 -5
  22. package/generated/label.d.ts +16 -9
  23. package/generated/liveupdate.d.ts +29 -26
  24. package/generated/model.d.ts +57 -45
  25. package/generated/msg.d.ts +3 -0
  26. package/generated/particlefx.d.ts +50 -34
  27. package/generated/physics.d.ts +153 -133
  28. package/generated/profiler.d.ts +45 -41
  29. package/generated/push.d.ts +5 -2
  30. package/generated/render.d.ts +410 -349
  31. package/generated/resource.d.ts +619 -572
  32. package/generated/socket.d.ts +49 -33
  33. package/generated/sound.d.ts +83 -72
  34. package/generated/sprite.d.ts +3 -0
  35. package/generated/sys.d.ts +198 -189
  36. package/generated/tilemap.d.ts +43 -39
  37. package/generated/timer.d.ts +42 -36
  38. package/generated/vmath.d.ts +22 -0
  39. package/generated/webview.d.ts +3 -0
  40. package/generated/window.d.ts +23 -17
  41. package/generated/zlib.d.ts +15 -12
  42. package/index.d.ts +3 -1
  43. package/package.json +13 -2
  44. package/scripts/fidelity-audit.ts +61 -1
  45. package/scripts/fidelity-baseline.json +10 -10
  46. package/scripts/ref-doc-delta.ts +143 -0
  47. package/scripts/regen.ts +18 -9
  48. package/src/core-types.ts +14 -0
  49. package/src/emit-dts.ts +219 -13
  50. package/src/engine-globals.d.ts +2 -0
  51. package/src/go-overloads.d.ts +43 -0
  52. package/src/index.ts +5 -0
  53. package/src/lifecycle.ts +157 -16
  54. package/src/publish-dts.ts +1 -1
@@ -1,5 +1,8 @@
1
1
  /** @noSelfInFile */
2
2
  declare global {
3
+ /**
4
+ * Functions and constants for interacting with local, as well as Apple''s and Google''s push notification services. These API's only exist on mobile platforms. [icon:ios] [icon:android]
5
+ */
3
6
  namespace push {
4
7
  /**
5
8
  * Use this function to cancel a previously scheduled local push notification.
@@ -33,7 +36,7 @@ declare global {
33
36
  * @param notifications - The types of notifications to listen to. [icon:ios]
34
37
  * @param callback - Register callback function.
35
38
  */
36
- function register(notifications: Record<string | number, unknown>, callback: (...args: unknown[]) => unknown): void;
39
+ function register(notifications: number[], callback: (...args: unknown[]) => unknown): void;
37
40
  /**
38
41
  * Local push notifications are scheduled with this function.
39
42
  * The returned `id` value is uniquely identifying the scheduled notification and can be stored for later reference.
@@ -44,7 +47,7 @@ declare global {
44
47
  * @param payload - JSON string to be passed to the registered listener function.
45
48
  * @param notification_settings - Table with notification and platform specific fields
46
49
  */
47
- function schedule(time: number, title: string, alert: string, payload: string, notification_settings: Record<string | number, unknown>): LuaMultiReturn<[number, string]>;
50
+ function schedule(time: number, title: string, alert: string, payload: string, notification_settings: { action?: string; badge_count?: number; priority?: number }): LuaMultiReturn<[number, string]>;
48
51
  /**
49
52
  * Set the badge count for application icon. This function is only available on iOS. [icon:ios]
50
53
  *