function isEventType
isEventType(s: string): s is EventType

Type guard: check if an arbitrary string is a valid EventType

Parameters

s: string

Return Type

Usage

import { isEventType } from "doc.ts";