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
src/a.ts(3,7): error TS2322: Type 'Promise<Map<number, Promise<string>>>' is not assignable to type 'Promise<Map<number, string>>'.
Type 'Map<number, Promise<string>>' is not assignable to type 'Map<number, string>'.
Type 'Promise<string>' is not assignable to type 'string'.
It works if I explicitly specify props<number, string>(input).
The error only reproduces with "lib": ["es6"].
The text was updated successfully, but these errors were encountered:
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of this repro running against the nightly TypeScript.
TypeScript Version: nightly (Version 2.5.0-dev.20170816)
Code
(based on
DefinitelyTyped/types/bluebird/index.d.ts
)Expected behavior:
No error.
Actual behavior:
It works if I explicitly specify
props<number, string>(input)
.The error only reproduces with
"lib": ["es6"]
.The text was updated successfully, but these errors were encountered: