Skip to content
Discussion options

You must be logged in to vote

Not possible, because TypeScript does not have the if condition type spec.

Instead, the union (oneOf) type will cover what you want.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gotenxds
Comment options

Answer selected by gotenxds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants