Skip to content

Support user-defined type guard functions #1203

Closed
@ddfisher

Description

@ddfisher

Currently we special case isinstance checks for determining the local type of a variable, but we could potentially give user-defined functions the same capability. See: microsoft/TypeScript#1007

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions