ivanhofer opened this issue 4 years ago · 0 comments
const toTest : {} | string = ... if (isObject(toTest)) { const copy = {...toTest} // TS should recognize that `toTest` is an `object` }