Skip to content

[BUG]: Typechecking fails for external code with exactOptionalPropertyTypes: true #461

@ammubhave

Description

@ammubhave

What happened?

When typescript is used with the option exactOptionalPropertyTypes: true, most code that consumes this library fails to typecheck if undefined is passed in for the response value.

All optional properties must have explicit | undefined in their type definitions.

Versions

all

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as documentedreleased

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions