@kemu-io/edge-runtime 0.1.19 → 0.1.22
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 +1 -1
- package/runner.d.ts +7 -7
- package/runner.js +2 -2
package/package.json
CHANGED
package/runner.d.ts
CHANGED
|
@@ -173,15 +173,15 @@ declare const _default: {
|
|
|
173
173
|
}) => Promise<{
|
|
174
174
|
/** use it to send data to input widgets */
|
|
175
175
|
sendToInputWidget: (inputName: string, data: PartialData, thingId?: string | undefined) => Promise<void>;
|
|
176
|
-
/**
|
|
177
|
-
* Sets a listener to changes in the value of a variable.
|
|
178
|
-
* @param varName the name of the variable to listen to. Set it to `*` to listen to all variable changes.
|
|
179
|
-
* @param cb the callback function to be invoked.
|
|
180
|
-
* @returns a function to remove the listener.
|
|
181
|
-
*/
|
|
182
|
-
onVariableChange: (varName: string, cb: (evt: VarValueChangeEvt) => void | Promise<void>) => void;
|
|
183
176
|
}>;
|
|
184
177
|
terminate: () => Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Sets a listener to changes in the value of a variable.
|
|
180
|
+
* @param varName the name of the variable to listen to. Set it to `*` to listen to all variable changes.
|
|
181
|
+
* @param cb the callback function to be invoked.
|
|
182
|
+
* @returns a function to remove the listener.
|
|
183
|
+
*/
|
|
184
|
+
onVariableChange: (varName: string, cb: (evt: VarValueChangeEvt) => void | Promise<void>) => () => void;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
export {
|