Extracts a variant from a data enum.
type WebPageEvent = | { __kind: 'pageview', url: string } | { __kind: 'click', x: number, y: number };type ClickEvent = GetDataEnumKind<WebPageEvent, 'click'>;// -> { __kind: 'click', x: number, y: number }
Generated using TypeDoc
Extracts a variant from a data enum.
Example