MCPcopy
hub / github.com/pyodide/pyodide / EmscriptenSettings

Interface EmscriptenSettings

src/js/emscripten-settings.ts:14–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12 * @hidden
13 */
14export interface EmscriptenSettings {
15 readonly noImageDecoding?: boolean;
16 readonly noAudioDecoding?: boolean;
17 readonly noWasmDecoding?: boolean;
18 readonly preRun: readonly PreRunFunc[];
19 readonly print?: (a: string) => void;
20 readonly printErr?: (a: string) => void;
21 readonly onExit?: (code: number) => void;
22 readonly thisProgram?: string;
23 readonly arguments: readonly string[];
24 readonly instantiateWasm?: (
25 imports: { [key: string]: any },
26 successCallback: (
27 instance: WebAssembly.Instance,
28 module: WebAssembly.Module,
29 ) => void,
30 ) => void;
31 readonly API: API;
32 readonly locateFile: (file: string) => string;
33
34 noInitialRun?: boolean;
35 INITIAL_MEMORY?: number;
36 exitCode?: number;
37}
38
39/**
40 * Get the base settings to use to load Pyodide.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…