drupflare/worker - v1.0.4
    Preparing search index...

    Type Alias MailDeps

    The two platform seams a spec replaces, so request building and edgeport's real SMTP conversation still run (replacing sendViaApi would test a stub).

    type MailDeps = {
        connect: (opts: ConnectOptions) => Promise<CoreSocket>;
        fetch: (
            url: string,
            init: { body: string; headers: Record<string, string>; method: string },
        ) => Promise<
            {
                ok: boolean;
                status: number;
                statusText: string;
                text(): Promise<string>;
            },
        >;
    }
    Index
    connect: (opts: ConnectOptions) => Promise<CoreSocket>
    fetch: (
        url: string,
        init: { body: string; headers: Record<string, string>; method: string },
    ) => Promise<
        {
            ok: boolean;
            status: number;
            statusText: string;
            text(): Promise<string>;
        },
    >

    narrower than typeof fetch, which carries a preconnect property a stub cannot supply