@appsemble/sdk 0.19.4 → 0.19.8
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/dist/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -147,7 +147,7 @@ export interface Events {
|
|
|
147
147
|
* @returns Boolean indicating whether a listener is implemented or not.
|
|
148
148
|
*/
|
|
149
149
|
off: {
|
|
150
|
-
[K in keyof EventListeners]: (callback: (data:
|
|
150
|
+
[K in keyof EventListeners]: <T>(callback: (data: T, error?: string) => void) => boolean;
|
|
151
151
|
};
|
|
152
152
|
/**
|
|
153
153
|
* Add an event listener for an Appsemble event.
|
|
@@ -157,7 +157,7 @@ export interface Events {
|
|
|
157
157
|
* @returns Boolean indicating whether a listener is implemented or not.
|
|
158
158
|
*/
|
|
159
159
|
on: {
|
|
160
|
-
[K in keyof EventListeners]: (callback: (data:
|
|
160
|
+
[K in keyof EventListeners]: <T>(callback: (data: T, error?: string) => void) => boolean;
|
|
161
161
|
};
|
|
162
162
|
}
|
|
163
163
|
/**
|