Skip to content
Discussion options

You must be logged in to vote

Hey @andrewbaxter! This is not a bug, #[ts(optional)] only works with the Option type. That's why you see the IsOption error.
You can use #[ts(as = "Option<_>", optional)] to achieve the result you want

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@andrewbaxter
Comment options

@gustavo-shigueo
Comment options

Answer selected by gustavo-shigueo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants