Skip to content
New issue

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

Typescript Playground > tsconfig exactOptionalPropertyTypes option is ignored if set via URL parameter #45078

Closed
simeyla opened this issue Jul 16, 2021 · 1 comment
Assignees

Comments

@simeyla
Copy link

simeyla commented Jul 16, 2021

Bug Report

πŸ”Ž Search Terms

exactOptionalPropertyTypes
typescript playground

πŸ•— Version & Regression Information

Since TS4.4 beta including nightly.

  • I was unable to test this on prior versions because this is a new option

⏯ Playground Link

The following playground link was generated by the share button.

https://www.typescriptlang.org/play?ts=4.4.0-beta&exactOptionalPropertyTypes=true#code/JYOwLgpgTgZghgYwgAgArQM4HsTIN4BQyxyIcAthAFzIZhSgDmANESXIxAPw0gCu5AEbQA3AQC+BAghx1kAB0w4a6KNlwBefG2JlKNAEQAROCGAQANgdYlkHasgBMAdgliCAE0sRICpSAA6exFiAHpQ5AAVAAsULEUoUw9kLBg7ZAByLwsfCAyUhLgwLChkcj45YQKwYBw4CwCpAiA

It includes the following parameter which was added automatically:

exactOptionalPropertyTypes=true

However when visiting the link the option reverts back to being unset, which can be evidenced by the lack of an error in the line of code delete person.age.

Not sure if this was because the property was recently renamed or if it had never worked under its original name.


Please assign to @orta as per @sandersn - #43947 (comment)

@orta
Copy link
Contributor

orta commented Jul 19, 2021

Fixed by microsoft/TypeScript-Website#1940 - will close this issue now, expect the fix to get deployed sometime this week, likely today

@orta orta closed this as completed Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants