- Preparing search index...
- The search index is not available
@runno/runtime
Type alias RuntimeMethods
RuntimeMethods: { getEditorProgram: (() => Promise<string>); headlessRunCode: ((runtime,
code,
stdin?) => Promise<RunResult>); headlessRunFS: ((runtime,
entryPath,
fs,
stdin?) => Promise<RunResult>); hideControls: (() => void); hideEditor: (() => void); interactiveRunCode: ((runtime,
code) => Promise<RunResult>); interactiveRunFS: ((runtime,
entryPath,
fs) => Promise<RunResult>); interactiveStop: (() => void); setEditorProgram: ((syntax,
runtime,
code) => void); showControls: (() => void); showEditor: (() => void); }
Type declaration
-
getEditorProgram: (() => Promise<string>)
-
- (): Promise<string>
-
Returns Promise<string>
-
headlessRunCode: ((runtime, code, stdin?) => Promise<RunResult>)
-
- (runtime, code, stdin?): Promise<RunResult>
-
Parameters
-
-
code: string
-
Optional
stdin: string
-
headlessRunFS: ((runtime, entryPath, fs, stdin?) => Promise<RunResult>)
-
- (runtime, entryPath, fs, stdin?): Promise<RunResult>
-
Parameters
-
-
entryPath: string
-
fs: WASIFS
-
Optional
stdin: string
-
hideControls: (() => void)
-
hideEditor: (() => void)
-
interactiveRunCode: ((runtime, code) => Promise<RunResult>)
-
interactiveRunFS: ((runtime, entryPath, fs) => Promise<RunResult>)
-
- (runtime, entryPath, fs): Promise<RunResult>
-
Parameters
-
-
entryPath: string
-
fs: WASIFS
-
interactiveStop: (() => void)
-
setEditorProgram: ((syntax, runtime, code) => void)
-
- (syntax, runtime, code): void
-
Returns void
-
showControls: (() => void)
-
showEditor: (() => void)