How to check if a string is included in a certain type

Say you have
type Category = "twitter" | "youtube" | "spotify"

then you need to check if a string is of type Category

what would the condition look like?
Was this page helpful?