web-background
Version:
Running background in browser Worker
10 lines (9 loc) • 661 B
TypeScript
export declare function extractIdentifiers(funcStr: string): string[];
export declare function isKeyword(identifier: string): boolean;
export declare function isGlobalBuiltIn(identifier: string): boolean;
export declare function isParameter(identifier: string, funcStr: string): boolean;
export declare function isLocalVariable(identifier: string, funcStr: string): boolean;
export declare function isSerializable(value: any): boolean;
export declare function getGlobalScope(): Record<string, any>;
export declare function extractParametersFromFunction(funcStr: string): Set<string>;
export declare function extractLocalVariables(funcStr: string): Set<string>;