monday-sdk-js 0.5.4 → 0.5.5
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/package.json
CHANGED
|
@@ -100,6 +100,7 @@ export interface ClientData {
|
|
|
100
100
|
* @param typeOrTypes The type, or array of types, of events to subscribe to
|
|
101
101
|
* @param callback A callback function that is fired when the listener is triggered by a client-side event
|
|
102
102
|
* @param params Reserved for future use
|
|
103
|
+
* @return Unsubscribe/unlisten from all added during this method call
|
|
103
104
|
*/
|
|
104
105
|
listen<
|
|
105
106
|
CustomResponse,
|
|
@@ -109,7 +110,7 @@ export interface ClientData {
|
|
|
109
110
|
typeOrTypes: T | ReadonlyArray<T>,
|
|
110
111
|
callback: (res: { data: SubscribableEventsResponse<AppFeatureType>[T] & CustomResponse }) => void,
|
|
111
112
|
params?: Record<string, any> & { appFeatureType?: AppFeatureType }
|
|
112
|
-
): void;
|
|
113
|
+
): () => void;
|
|
113
114
|
|
|
114
115
|
/**
|
|
115
116
|
* Set data in your application, such as updating settings
|