ConditionalNode with custom types #3346
Unanswered
DavidMulder0
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Thanks for your input. I'm not entirely sure what you mean. Do you mean to ask to define support for a new type? That can be done via typed.addType({
name: 'ACustomType',
test: (x) => x instancof ACustomType
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Been trying to add a custom type, and for the most part it has been going okay, as so far everything has 'just' been a typed function that needed adding support for. How would one go about adding support for
instanceOfACustomType ? 1 : 0
?Beta Was this translation helpful? Give feedback.
All reactions