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
interface Struct { a: boolean b: number } let v1: Struct = {a: true, b:1} let v2: Struct = Object.assign({}, v1, { b: false })
v2 variable now contains {a: true, b: false}, which is definetely not Struct type. But there is no compile-time error there. How come?
v2
{a: true, b: false}
Struct
The text was updated successfully, but these errors were encountered:
This is a duplicate of the issue raised in #6613. We currently don't have the ability to exactly express the exact semantics of Object.assign.
Object.assign
Sorry, something went wrong.
No branches or pull requests
v2
variable now contains{a: true, b: false}
, which is definetely notStruct
type. But there is no compile-time error there. How come?The text was updated successfully, but these errors were encountered: