Skip to content

suzil/fetch-retry-type-error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$ yarn install
$ yarn ts-node test.ts
TSError: ⨯ Unable to compile TypeScript:
test.ts:4:26 - error TS2345: Argument of type '(url: RequestInfo, init?: RequestInit | undefined) => Promise<Response>' is not assignable to parameter of type '(input: RequestInfo, init?: RequestInit | undefined) => Promise<Response>'.
  Types of parameters 'url' and 'input' are incompatible.
    Type 'RequestInfo' is not assignable to type 'import("/Users/suzil/Documents/ownup/test/node_modules/node-fetch/@types/index").RequestInfo'.
      Type 'Request' is not assignable to type 'RequestInfo'.
        Type 'Request' is missing the following properties from type 'Request': size, buffer

4 const fetch = fetchRetry(originalFetch);

About

Reproducing a type error

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published