git clone https://gist.github.com/panva/a350238b643aef7a77b29e6db395c3b9 response-type-reproduction
cd response-type-reproduction
npm i
npx tsc
index.ts:4:3 - error TS2322: Type 'Promise<import("./node_modules/undici/types/fetch").Response>' is not assignable to type 'Promise<Response>'.
Type 'import("./node_modules/undici/types/fetch").Response' is not assignable to type 'Response'.
The types returned by 'headers.entries()' are incompatible between these types.
Type 'SpecIterableIterator<[string, string]>' is missing the following properties from type 'HeadersIterator<[string, string]>': map, filter, take, drop, and 9 more.
4 return undici.fetch(url)
~~~~~~
Found 1 error in index.ts:4