We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, classes can specify custom instanceof behaviour by having a static method called instanceof. https://devblogs.microsoft.com/typescript/announcing-typescript-5-3-rc/#instanceof-narrowing-through-symbol-hasinstance Now that TypeScript will narrow types based on the Symbol.hasInstance method, it'd be useful to convert that, either additionally, or replacing the current instanceof behaviour.
instanceof
Symbol.hasInstance
This might need more general design about how to deal with Symbol and its properties, therefore related to #1826.
Symbol
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, classes can specify custom instanceof behaviour by having a static method called
instanceof
.https://devblogs.microsoft.com/typescript/announcing-typescript-5-3-rc/#instanceof-narrowing-through-symbol-hasinstance
Now that TypeScript will narrow types based on the
Symbol.hasInstance
method, it'd be useful to convert that, either additionally, or replacing the currentinstanceof
behaviour.This might need more general design about how to deal with
Symbol
and its properties, therefore related to #1826.The text was updated successfully, but these errors were encountered: