@flowgram.ai/variable-core 0.2.22 → 0.2.24

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/dist/index.d.mts CHANGED
@@ -217,6 +217,14 @@ declare class Scope<ScopeMeta extends Record<string, any> = Record<string, any>>
217
217
  * @returns The updated AST node.
218
218
  */
219
219
  setVar(json: ASTNodeJSON): ASTNode;
220
+ /**
221
+ * Sets a variable in the Scope by key.
222
+ *
223
+ * @param key - The key of the variable to set.
224
+ * @param json - The JSON value to store.
225
+ * @returns The updated AST node.
226
+ */
227
+ setVar(key: string, json: ASTNodeJSON): ASTNode;
220
228
  /**
221
229
  * Retrieves a variable from the Scope by key.
222
230
  *
package/dist/index.d.ts CHANGED
@@ -217,6 +217,14 @@ declare class Scope<ScopeMeta extends Record<string, any> = Record<string, any>>
217
217
  * @returns The updated AST node.
218
218
  */
219
219
  setVar(json: ASTNodeJSON): ASTNode;
220
+ /**
221
+ * Sets a variable in the Scope by key.
222
+ *
223
+ * @param key - The key of the variable to set.
224
+ * @param json - The JSON value to store.
225
+ * @returns The updated AST node.
226
+ */
227
+ setVar(key: string, json: ASTNodeJSON): ASTNode;
220
228
  /**
221
229
  * Retrieves a variable from the Scope by key.
222
230
  *