Object.assign not type checking
TS 2.0.3
Given:
(() => { type State = { foo: string }; const state: State = { foo: 'bar' }; const newState: State = Object.assign({}, state, { foo: 1 }) // I expect this to error })();
I swear this used to work!
Object.assign not type checking
TS 2.0.3
Given:
(() => { type State = { foo: string }; const state: State = { foo: 'bar' }; const newState: State = Object.assign({}, state, { foo: 1 }) // I expect this to error })();
I swear this used to work!