Skip to content

Commit

Permalink
Fix missing type dependency
Browse files Browse the repository at this point in the history
Fixes #562
  • Loading branch information
sindresorhus committed Feb 29, 2024
1 parent 58b5c4a commit c0a4dfa
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion source/types/request.ts
@@ -1,4 +1,19 @@
import {type RequestInit as UndiciRequestInit} from 'undici-types';
type UndiciRequestInit = {
method?: string;
keepalive?: boolean;
headers?: HeadersInit;
body?: BodyInit;
redirect?: RequestRedirect;
integrity?: string;
signal?: AbortSignal | undefined;
credentials?: RequestCredentials;
mode?: RequestMode;
referrer?: string;
referrerPolicy?: ReferrerPolicy;
window?: undefined;
dispatcher?: unknown;
duplex?: unknown;
};

type CombinedRequestInit = globalThis.RequestInit & UndiciRequestInit;

Expand Down

0 comments on commit c0a4dfa

Please sign in to comment.