@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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kemu-io/edge-runtime",
3
3
  "type": "module",
4
- "version": "0.1.19",
4
+ "version": "0.1.22",
5
5
  "description": "Kemu Edge runtime for running Kemu recipes",
6
6
  "author": "Kemu Pty Ltd",
7
7
  "main": "runner.js",
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 {