CodeRunAvailability

Whether running is possible right now, and if not, why.

@internote/canvas-sdkType
On this page
import { CodeRunAvailability } from '@internote/canvas-sdk';

reason is reader-facing copy, which a console's empty state shows. kind is the machine's word: auth means the reader can fix it by signing in, unavailable means this host has nowhere to run.

#Signature

{
    ok: true;
} | {
    ok: false;
    reason: string;
    kind: "auth" | "unavailable";
}

Declared in packages/canvas-sdk/src/runner/index.ts:26.

Last updated