ConditionalNode with custom types #3346
Unanswered
DavidMulder0
asked this question in
Q&A
Replies: 1 comment 3 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
}) |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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?All reactions