Skip to content

API: expose getOptionalType and getNonOptionalType #33875

Open
@ajafff

Description

@ajafff

Suggestion

As API user I need to distinguish the optionalType and the real undefined type when handling optional chaining.
getOptionalType and getNonOptionalType are already present on TypeChecker, but not exposed in the public API.

/cc @rbuckton

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIRelates to the public API for TypeScriptIn DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions