interface CodeRunner {
    getTerminalCmd: ((language, magicComment) => null | {
        exit: string;
        start: string;
    });
    match: ((language, magicComment) => boolean);
    name: string;
    order?: number;
    run: ((language, code) => Promise<{
        type: "plain" | "html";
        value: string | ReadableStreamDefaultReader<any>;
    }>);
}

Properties

getTerminalCmd: ((language, magicComment) => null | {
    exit: string;
    start: string;
})

Type declaration

    • (language, magicComment): null | {
          exit: string;
          start: string;
      }
    • Parameters

      • language: string
      • magicComment: string

      Returns null | {
          exit: string;
          start: string;
      }

match: ((language, magicComment) => boolean)

Type declaration

    • (language, magicComment): boolean
    • Parameters

      • language: string
      • magicComment: string

      Returns boolean

name: string
order?: number
run: ((language, code) => Promise<{
    type: "plain" | "html";
    value: string | ReadableStreamDefaultReader<any>;
}>)

Type declaration

    • (language, code): Promise<{
          type: "plain" | "html";
          value: string | ReadableStreamDefaultReader<any>;
      }>
    • Parameters

      • language: string
      • code: string

      Returns Promise<{
          type: "plain" | "html";
          value: string | ReadableStreamDefaultReader<any>;
      }>

Generated using TypeDoc