Skip to content

Enable typescript option exactOptionalPropertyTypes #245

Closed
@SimonSimCity

Description

@SimonSimCity

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

Based on the conversation I've had in the typescript repository so far, it seems that #240, which originates from the changes of #235, is best resolved by enabling the typescript option exactOptionalPropertyTypes. By enabling this option, issues like #237 would already have been found by running the typescript compiler, which is done prior to every release of the code here.

Does anything speak against enabling this option, or is there a reason you would not like to do it?

Describe the ideal solution

Enable the typescript option exactOptionalPropertyTypes and revert the changes done in #243.

Alternatives and current workarounds

Keep the changes done in #243 and leave exactOptionalPropertyTypes disabled.

Additional context

microsoft/TypeScript#55058

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestA feature has been asked for or suggested by the community

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions