/usr/local/lib/node_modules/pm2/node_modules/@tootallnate/quickjs-emscripten/dist
NameSizeModeActions
generated/-0755rm
asyncify-helpers.d.ts14750644editdlrm
asyncify-helpers.js18180644editdlrm
asyncify-helpers.js.map42050644editdlrm
context-asyncify.d.ts21770644editdlrm
context-asyncify.js23700644editdlrm
context-asyncify.js.map46510644editdlrm
context.d.ts160650644editdlrm
context.js295950644editdlrm
context.js.map533030644editdlrm
debug.d.ts1560644editdlrm
debug.js3270644editdlrm
debug.js.map5180644editdlrm
deferred-promise.d.ts29570644editdlrm
deferred-promise.js37540644editdlrm
deferred-promise.js.map61760644editdlrm
emscripten-types.d.ts38860644editdlrm
emscripten-types.js7760644editdlrm
emscripten-types.js.map54840644editdlrm
errors.d.ts8360644editdlrm
errors.js19140644editdlrm
errors.js.map17800644editdlrm
esmHelpers.d.ts4200644editdlrm
esmHelpers.js7780644editdlrm
esmHelpers.js.map11260644editdlrm
index.d.ts40760644editdlrm
index.js59490644editdlrm
index.js.map65690644editdlrm
lifetime.d.ts43990644editdlrm
lifetime.js67240644editdlrm
lifetime.js.map118580644editdlrm
memory.d.ts7750644editdlrm
memory.js17070644editdlrm
memory.js.map38960644editdlrm
module-asyncify.d.ts23860644editdlrm
module-asyncify.js40350644editdlrm
module-asyncify.js.map64590644editdlrm
module-test.d.ts11180644editdlrm
module-test.js26690644editdlrm
module-test.js.map46720644editdlrm
module.d.ts62720644editdlrm
module.js127400644editdlrm
module.js.map217160644editdlrm
runtime-asyncify.d.ts16870644editdlrm
runtime-asyncify.js18800644editdlrm
runtime-asyncify.js.map40820644editdlrm
runtime.d.ts70480644editdlrm
runtime.js129090644editdlrm
runtime.js.map223670644editdlrm
types-ffi.d.ts34390644editdlrm
types-ffi.js13460644editdlrm
types-ffi.js.map47120644editdlrm
types.d.ts67510644editdlrm
types.js17220644editdlrm
types.js.map92720644editdlrm
variants.d.ts47840644editdlrm
variants.js68930644editdlrm
variants.js.map102260644editdlrm
vm-interface.d.ts26690644editdlrm
vm-interface.js3840644editdlrm
vm-interface.js.map31790644editdlrm
Edit: /usr/local/lib/node_modules/pm2/node_modules/@tootallnate/quickjs-emscripten/dist/vm-interface.d.ts (2669B)
/** * Used as an optional. * `{ value: S } | { error: E }`. */ export type SuccessOrFail = { value: S; error?: undefined; } | { error: F; }; export declare function isSuccess(successOrFail: SuccessOrFail): successOrFail is { value: S; }; export declare function isFail(successOrFail: SuccessOrFail): successOrFail is { error: F; }; /** * Used as an optional for results of a Vm call. * `{ value: VmHandle } | { error: VmHandle }`. */ export type VmCallResult = SuccessOrFail; /** * A VmFunctionImplementation takes handles as arguments. * It should return a handle, or be void. * * To indicate an exception, a VMs can throw either a handle (transferred * directly) or any other Javascript value (only the poperties `name` and * `message` will be transferred). Or, the VmFunctionImplementation may return * a VmCallResult's `{ error: handle }` error variant. * * VmFunctionImplementation should not free its arguments or its return value. * It should not retain a reference to its return value or thrown error. */ export type VmFunctionImplementation = (this: VmHandle, ...args: VmHandle[]) => VmHandle | VmCallResult | void; /** * A minimal interface to a Javascript execution environment. * * Higher-level tools should build over the LowLevelJavascriptVm interface to * share as much as possible between executors. * * From https://www.figma.com/blog/how-we-built-the-figma-plugin-system/ */ export interface LowLevelJavascriptVm { global: VmHandle; undefined: VmHandle; typeof(handle: VmHandle): string; getNumber(handle: VmHandle): number; getString(handle: VmHandle): string; newNumber(value: number): VmHandle; newString(value: string): VmHandle; newObject(prototype?: VmHandle): VmHandle; newFunction(name: string, value: VmFunctionImplementation): VmHandle; getProp(handle: VmHandle, key: string | VmHandle): VmHandle; setProp(handle: VmHandle, key: string | VmHandle, value: VmHandle): void; defineProp(handle: VmHandle, key: string | VmHandle, descriptor: VmPropertyDescriptor): void; callFunction(func: VmHandle, thisVal: VmHandle, ...args: VmHandle[]): VmCallResult; evalCode(code: string, filename?: string): VmCallResult; } /** * From https://www.figma.com/blog/how-we-built-the-figma-plugin-system/ */ export interface VmPropertyDescriptor { value?: VmHandle; configurable?: boolean; enumerable?: boolean; get?: (this: VmHandle) => VmHandle; set?: (this: VmHandle, value: VmHandle) => void; }