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

        • runtime: Runtime
        • code: string
        • Optional stdin: string

        Returns Promise<RunResult>

  • headlessRunFS: ((runtime, entryPath, fs, stdin?) => Promise<RunResult>)
      • (runtime, entryPath, fs, stdin?): Promise<RunResult>
      • Parameters

        • runtime: Runtime
        • entryPath: string
        • fs: WASIFS
        • Optional stdin: string

        Returns Promise<RunResult>

  • hideControls: (() => void)
      • (): void
      • Returns void

  • hideEditor: (() => void)
      • (): void
      • Returns void

  • interactiveRunCode: ((runtime, code) => Promise<RunResult>)
  • interactiveRunFS: ((runtime, entryPath, fs) => Promise<RunResult>)
      • (runtime, entryPath, fs): Promise<RunResult>
      • Parameters

        • runtime: Runtime
        • entryPath: string
        • fs: WASIFS

        Returns Promise<RunResult>

  • interactiveStop: (() => void)
      • (): void
      • Returns void

  • setEditorProgram: ((syntax, runtime, code) => void)
      • (syntax, runtime, code): void
      • Parameters

        Returns void

  • showControls: (() => void)
      • (): void
      • Returns void

  • showEditor: (() => void)
      • (): void
      • Returns void

Generated using TypeDoc