Setu-TS
    Preparing search index...

    Interface DenoHost

    Minimal interface covering the Deno-specific operations used by this adapter. Inject this interface to test the adapter without real Deno.

    interface DenoHost {
        build: { os: string };
        env: { toObject(): Record<string, string> };
        stderr?: { writeSync(data: Uint8Array): number };
        version: { deno: string };
        addSignalListener(signal: RuntimeSignal, handler: () => void): void;
        exit(code?: number): never;
        hostname(): string;
        mkdir(path: string, options?: { recursive?: boolean }): Promise<void>;
        open(path: string): Promise<FsFile>;
        readDir(path: string): AsyncIterable<DenoDirEntry>;
        readFile(path: string): Promise<Uint8Array<ArrayBufferLike>>;
        realPath(path: string): Promise<string>;
        remove(path: string, options?: { recursive?: boolean }): Promise<void>;
        resolveDns(query: string, recordType: "SRV"): Promise<DenoSrvRecord[]>;
        resolveDns(query: string, recordType: "A" | "AAAA"): Promise<string[]>;
        stat(path: string): Promise<DenoFileInfo>;
        writeFile(path: string, data: Uint8Array): Promise<void>;
    }
    Index
    build: { os: string }

    Build metadata. Read for os alone, to decide whether signal listening is available — see createDenoRuntimeServices.

    env: { toObject(): Record<string, string> }

    Environment variable map.

    stderr?: { writeSync(data: Uint8Array): number }

    Standard error writer; optional for legacy injected hosts.

    version: { deno: string }

    Current runtime version string.