@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
16 lines (15 loc) • 495 B
TypeScript
/**
* @author WMXPY
* @namespace Variable_SandFunction
* @description Sand Function
*/
export declare class SandFunction {
static wrapFunction(func: ((...args: any[]) => any) | SandFunction): SandFunction;
static create(func: (thisValue: any, ...args: any[]) => any): SandFunction;
private readonly _function;
private _thisValue;
private constructor();
get thisValue(): any | null;
execute(...args: any[]): any;
bindThisValue(thisValue: any): SandFunction;
}