@defold-typescript/types 0.5.5 → 0.6.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-targets.json +1 -1
- package/generated/b2d.d.ts +3 -0
- package/generated/buffer.d.ts +44 -38
- package/generated/builtin-messages.d.ts +1 -1
- package/generated/camera.d.ts +3 -0
- package/generated/collectionfactory.d.ts +47 -40
- package/generated/collectionproxy.d.ts +23 -18
- package/generated/crash.d.ts +3 -0
- package/generated/factory.d.ts +32 -24
- package/generated/go.d.ts +123 -124
- package/generated/graphics.d.ts +3 -0
- package/generated/gui.d.ts +303 -283
- package/generated/http.d.ts +26 -16
- package/generated/iac.d.ts +3 -0
- package/generated/iap.d.ts +6 -3
- package/generated/image.d.ts +30 -26
- package/generated/json.d.ts +36 -32
- package/generated/kinds/gui-script.d.ts +7 -5
- package/generated/kinds/render-script.d.ts +7 -5
- package/generated/kinds/script.d.ts +7 -5
- package/generated/label.d.ts +16 -9
- package/generated/liveupdate.d.ts +29 -26
- package/generated/model.d.ts +57 -45
- package/generated/msg.d.ts +3 -0
- package/generated/particlefx.d.ts +50 -34
- package/generated/physics.d.ts +153 -133
- package/generated/profiler.d.ts +45 -41
- package/generated/push.d.ts +5 -2
- package/generated/render.d.ts +410 -349
- package/generated/resource.d.ts +619 -572
- package/generated/socket.d.ts +49 -33
- package/generated/sound.d.ts +83 -72
- package/generated/sprite.d.ts +3 -0
- package/generated/sys.d.ts +198 -189
- package/generated/tilemap.d.ts +43 -39
- package/generated/timer.d.ts +42 -36
- package/generated/vmath.d.ts +22 -0
- package/generated/webview.d.ts +3 -0
- package/generated/window.d.ts +23 -17
- package/generated/zlib.d.ts +15 -12
- package/index.d.ts +3 -1
- package/package.json +6 -2
- package/scripts/fidelity-audit.ts +61 -1
- package/scripts/fidelity-baseline.json +10 -10
- package/scripts/ref-doc-delta.ts +143 -0
- package/scripts/regen.ts +18 -9
- package/src/core-types.ts +14 -0
- package/src/emit-dts.ts +219 -13
- package/src/engine-globals.d.ts +2 -0
- package/src/go-overloads.d.ts +43 -0
- package/src/index.ts +5 -0
- package/src/lifecycle.ts +157 -16
- package/src/publish-dts.ts +1 -1
package/generated/push.d.ts
CHANGED
|
@@ -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:
|
|
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:
|
|
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
|
*
|