compile.d.ts 528 B

1234567891011
  1. /// <reference types="node" />
  2. import type { Context } from 'vm';
  3. import type { QuickJSWASMModule } from '@tootallnate/quickjs-emscripten';
  4. import type { DegeneratorNames } from './degenerator';
  5. export interface CompileOptions {
  6. names?: DegeneratorNames;
  7. filename?: string;
  8. sandbox?: Context;
  9. }
  10. export declare function compile<R = unknown, A extends unknown[] = []>(qjs: QuickJSWASMModule, code: string, returnName: string, options?: CompileOptions): (...args: A) => Promise<R>;
  11. //# sourceMappingURL=compile.d.ts.map