Skip to content

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

Closed
@simeyla

Description

@simeyla

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions