function isEventType isEventType(s: string): s is EventType Type guard: check if an arbitrary string is a valid EventType Parameters s: string Return Type s is EventType