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

Properties

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