You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Error: /Users/wheresrhys/Projects/fetch-mock/types/fetch-mock-tests.ts:200:1
ERROR: 200:1 expect TypeScript@next compile error:
Type 'PromiseConstructor' is not assignable to type 'new (executor: (resolve: () => void, reject: () => void) => void) => Promise<Response>'.
Types of parameters 'executor' and 'executor' are incompatible.
Types of parameters 'resolve' and 'resolve' are incompatible.
Type '(value: Response | PromiseLike<Response>) => void' is not assignable to type '() => void'.
at /Users/wheresrhys/Projects/fetch-mock/node_modules/dtslint/bin/index.js:191:19
at Generator.next (<anonymous>)
at fulfilled (/Users/wheresrhys/Projects/fetch-mock/node_modules/dtslint/bin/index.js:6:58)
I'm not really au fait with typescript (I only have the type defs due to demand from users of the library), so have no idea where to start debugging, and not sure if it's a mistake in the defs or a genuine bug
The text was updated successfully, but these errors were encountered:
wheresrhys
changed the title
Typescript next Errors when finding Promise
Typescript@next Errors when finding Promise
Oct 31, 2020
On this line https://github.com/wheresrhys/fetch-mock/blob/master/types/fetch-mock-tests.ts#L200 I get the following error.
I'm not really au fait with typescript (I only have the type defs due to demand from users of the library), so have no idea where to start debugging, and not sure if it's a mistake in the defs or a genuine bug
The text was updated successfully, but these errors were encountered: