-
Notifications
You must be signed in to change notification settings - Fork 12.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error inferring types of promise function #17873
Labels
Milestone
Comments
This is still giving error, here is repro for bot. declare function props<K, V>(x: PromiseLike<Map<K, PromiseLike<V> | V>>): Promise<Map<K, V>>;
declare const input: Promise<Map<number, Promise<string>>>;
const out: Promise<Map<number, string>> = props(input); |
typescript-bot
added
the
Has Repro
This issue has compiler-backed repros: https://aka.ms/ts-repros
label
Mar 10, 2024
👋 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. ❌ Failed: -
Historical Information
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: