Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support user-defined type guard functions #1203

Closed
ddfisher opened this issue Feb 2, 2016 · 1 comment
Closed

Support user-defined type guard functions #1203

ddfisher opened this issue Feb 2, 2016 · 1 comment

Comments

@ddfisher
Copy link
Collaborator

ddfisher commented Feb 2, 2016

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

@ilevkivskyi
Copy link
Member

Closing in favour of #5206 that has more discussion.

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

No branches or pull requests

3 participants