feat: typed API definition #371
Draft
Annotations
5 errors
|
Run pnpm build:
src/fetch.ts#L70
Argument of type '{ retry: number; timeout: number | undefined; method?: string | undefined; baseURL?: string | undefined; body?: Record<string, any> | BodyInit | null | undefined; ... 22 more ...; window?: null | undefined; }' is not assignable to parameter of type 'FetchOptions<any, { method: "GET" | "HEAD" | "PATCH" | "POST" | "PUT" | "DELETE" | "CONNECT" | "OPTIONS" | "TRACE" | "get" | "head" | "patch" | "post" | "put" | "delete" | "connect" | "options" | "trace"; query: unknown; body: any; params: unknown; }>'.
|
Run pnpm build:
src/fetch.ts#L226
Unused '@ts-expect-error' directive.
|
Run pnpm build:
src/fetch.ts#L230
Type '$Fetch<unknown, InternalApi>' is not assignable to type '$Fetch<T, A>'.
|
Run pnpm build
Process completed with exit code 1.
|
Loading