UNPKG

@sebastianwessel/quickjs

Version:

A typescript package to execute JavaScript and TypeScript code in a WebAssembly QuickJS sandbox

10 lines (9 loc) 401 B
import type { IFs } from 'memfs'; import type { QuickJSAsyncContext, QuickJSContext, Scope } from 'quickjs-emscripten-core'; import type { RuntimeOptions } from '../../types/RuntimeOptions.js'; /** * Provide http related functions */ export declare const provideHttp: (ctx: QuickJSContext | QuickJSAsyncContext, scope: Scope, options: RuntimeOptions, input?: { fs?: IFs | undefined; }) => void;