@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
11 lines (10 loc) • 682 B
TypeScript
/**
* @author WMXPY
* @namespace Operation_VariableDeclaration
* @description Register
*/
import * as EST from "estree";
import { IScope, ITrace, VARIABLE_TYPE } from "../../declare/variable";
import { Sandbox } from "../../marked/sandbox";
export declare const registerScopeVariableWithExpression: (this: Sandbox, node: EST.Node, variableType: VARIABLE_TYPE, id: string, expression: EST.Node | null | undefined, scope: IScope, currentTrace: ITrace, nextTrace: ITrace) => Promise<any>;
export declare const registerScopeVariableWithValue: (this: Sandbox, node: EST.Node, variableType: VARIABLE_TYPE, id: string, value: any, scope: IScope, currentTrace: ITrace) => Promise<any>;