Bug Report
🔎 Search Terms
object values entries undefined optional properties
🕗 Version & Regression Information
- This changed between versions 4.2.3 and 4.3.2
⏯ Playground Link
Playground link with relevant code
💻 Code
consta: {b?: 1|undefined}={b: undefined};constc=Object.values(a);console.log(c);// Returns [undefined] but c has type 1[]🙁 Actual behavior
c has type 1[] but can be equal to [undefined]
🙂 Expected behavior
c should have type (undefined | 1)[]
Bug Report
🔎 Search Terms
object values entries undefined optional properties
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
chas type1[]but can be equal to[undefined]🙂 Expected behavior
cshould have type(undefined | 1)[]