@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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -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: unknown, error?: string) => void) => boolean;
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: unknown, error?: string) => void) => boolean;
160
+ [K in keyof EventListeners]: <T>(callback: (data: T, error?: string) => void) => boolean;
161
161
  };
162
162
  }
163
163
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appsemble/sdk",
3
- "version": "0.19.4",
3
+ "version": "0.19.8",
4
4
  "description": "Build your own blocks",
5
5
  "keywords": [
6
6
  "app",