Debug Failure with strictFunctionTypes
: type provided should not be a non-generic 'promise'-like
#56509
Labels
Bug
A bug in TypeScript
Crash
For flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Fix Available
A PR has been opened for this issue
Milestone
π Search Terms
type provided should not be a non-generic 'promise'-like
π Version & Regression Information
β― Playground Link
Playground link
Note: Because this is a crash, the playground looks broken. The browser console has the stack trace.
π» Code
π Actual behavior
at the node
this.resolvePromise(result, resolve);
π Expected behavior
No crash.
Additional information about the issue
Found this when migrating to
ts.transpileModule
. As far as I can tell it's triggered by 2 conditions, which all have to be true:strictFunctionTypes: true
PromiseLike
must not exist, e.g. by usingnoLib: true
The text was updated successfully, but these errors were encountered: