Skip to content

Add support for exactOptionalPropertyTypes flag from TypeScript 4.4 #4730

Closed

Description

@kamilogorek

ref: #3960

Activity

  1. changed the title [-]ref(all): Add support for exactOptionalPropertyTypes flag from TypeScript 4.4[/-] [+]Add support for exactOptionalPropertyTypes flag from TypeScript 4.4[/+] on Mar 17, 2022
  2. immerrr commented on Nov 5, 2025

    @immerrr

    @kamilogorek @HazAT

    Looks like the support for the "exactOptionalPropertyTypes" is still not implemented, even though this issue is closed. Would you be able to tell if it is on the roadmap still?

    Enabling the option is recommended in TS doc and according to #18024, it is now enabled by default when running tsc --init, so the number of people who will come asking will increase in the future. You can kind of work it around with things like

    Sentry.init({
      ...( dsn !== undefined ? { dsn } : undefined ),
    })
    

    but it's not at all pretty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions