diff --git a/package.json b/package.json index 483479d4..05b2b9c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "monday-sdk-js", - "version": "0.5.4", + "version": "0.5.5", "private": false, "repository": "https://github.com/mondaycom/monday-sdk-js", "main": "src/index.js", diff --git a/types/client-data.interface.ts b/types/client-data.interface.ts index f48c085b..738d4564 100644 --- a/types/client-data.interface.ts +++ b/types/client-data.interface.ts @@ -100,6 +100,7 @@ export interface ClientData { * @param typeOrTypes The type, or array of types, of events to subscribe to * @param callback A callback function that is fired when the listener is triggered by a client-side event * @param params Reserved for future use + * @return Unsubscribe/unlisten from all added during this method call */ listen< CustomResponse, @@ -109,7 +110,7 @@ export interface ClientData { typeOrTypes: T | ReadonlyArray, callback: (res: { data: SubscribableEventsResponse[T] & CustomResponse }) => void, params?: Record & { appFeatureType?: AppFeatureType } - ): void; + ): () => void; /** * Set data in your application, such as updating settings