Skip to content

tsc error on fetch type #13

@bourgeoa

Description

@bourgeoa

Copilot made this proposal to resolve the issue and it works in this context :

/// <reference types="node" />
export declare const getAuthenticatedFetch: ({ provider, email, password, webId, fetch, }: {
    provider: string;
    email: string;
    password: string;
    webId?: string | undefined;
    fetch?: typeof globalThis.fetch | undefined;
}) => Promise<typeof globalThis.fetch>;
export declare const createAccount: ({ username, password, email, provider, fetch, }: {
    username: string;
    password?: string | undefined;
    email?: string | undefined;
    provider: string;
    fetch?: typeof globalThis.fetch | undefined;
}) => Promise<{
    idp: string;
    podUrl: string;
    webId: string;
    username: string;
    password: string;
    email: string;
}>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions