Umi — API References - v1.3.0
    Preparing search index...

    Type Alias GetDataEnumKindContent<T, K>

    GetDataEnumKindContent: Omit<Extract<T, { __kind: K }>, "__kind">

    Extracts a variant from a data enum without its discriminator.

    Type Parameters

    type WebPageEvent =
    | { __kind: 'pageview', url: string }
    | { __kind: 'click', x: number, y: number };
    type ClickEvent = GetDataEnumKindContent<WebPageEvent, 'click'>;
    // -> { x: number, y: number }