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
Didn't find an issue on this.
TypeScript Version: 2.2.2
Code
type A = { a: string, b: string } let a: A = { a: '1', b: '2', c: 3, ...{ x: 1 } // no error }
Expected behavior: I would expect TS Error like in this case
type A = { a: string, b: string } let a: A = { a: '1', b: '2', c: 3 // error: Object literal may only specify known properties, and 'c' does not exist in type 'A' }
Actual behavior: No error
The text was updated successfully, but these errors were encountered:
See #12745
Sorry, something went wrong.
@RyanCavanaugh what spread has to do with unions?
Oops, #13878
No branches or pull requests
Didn't find an issue on this.
TypeScript Version: 2.2.2
Code
Expected behavior:
I would expect TS Error like in this case
Actual behavior:
No error
The text was updated successfully, but these errors were encountered: