diff --git a/packages/isomorphic-unfetch/index.d.ts b/packages/isomorphic-unfetch/index.d.ts index 0c53ad9..39162e8 100644 --- a/packages/isomorphic-unfetch/index.d.ts +++ b/packages/isomorphic-unfetch/index.d.ts @@ -2,14 +2,16 @@ import { Body as NodeBody, Headers as NodeHeaders, Request as NodeRequest, - Response as NodeResponse + Response as NodeResponse, + RequestInit as NodeRequestInit } from "node-fetch"; declare namespace unfetch { export type IsomorphicHeaders = Headers | NodeHeaders; export type IsomorphicBody = Body | NodeBody; export type IsomorphicResponse = Response | NodeResponse; - export type IsomorphicRequest = Request | NodeRequest + export type IsomorphicRequest = Request | NodeRequest; + export type IsomorphicRequestInit = RequestInit | NodeRequestInit; } declare const unfetch: typeof fetch; diff --git a/src/index.d.ts b/src/index.d.ts index 7f2c7a6..7d582fa 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -2,14 +2,16 @@ import { Body as NodeBody, Headers as NodeHeaders, Request as NodeRequest, - Response as NodeResponse + Response as NodeResponse, + RequestInit as NodeRequestInit } from "node-fetch"; declare namespace unfetch { export type IsomorphicHeaders = Headers | NodeHeaders; export type IsomorphicBody = Body | NodeBody; export type IsomorphicResponse = Response | NodeResponse; - export type IsomorphicRequest = Request | NodeRequest + export type IsomorphicRequest = Request | NodeRequest; + export type IsomorphicRequestInit = RequestInit | NodeRequestInit; } type UnfetchResponse = {