Closed
Description
Bug Report
π Search Terms
Types not matching destructuring assignment hint error ignored
π Version & Regression Information
ts version: 4.6.4
β― Playground Link
π» Code
type aType = { a: number }
const a: aType = { a: 123, b: 456 } // β
hint error
const b: aType = { a: 123, ...{ b: 456 } }// β not hint error, why?
π Actual behavior
const a hint the error
const b not hint the error
π Expected behavior
const a hint the error
const b hint the error too, beacuse aType don't match "{ b: 456 }"