We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Record Promise
^5.4.5
No response
const a: Record<any, any> = new Promise(() => {})
Promises are not the same as any other type, only when awaited properly.
A type error should occur.
The text was updated successfully, but these errors were encountered:
A Promise is a Record. It has properties.
Sorry, something went wrong.
No branches or pull requests
π Search Terms
Record Promise
π Version & Regression Information
^5.4.5
β― Playground Link
No response
π» Code
π Actual behavior
Promises are not the same as any other type, only when awaited properly.
π Expected behavior
A type error should occur.
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: