DataEnum: {
    __kind: string;
}

Defines a data enum using discriminated union types.

Example

type WebPageEvent =
| { __kind: 'pageview', url: string }
| { __kind: 'click', x: number, y: number };

Type declaration

  • __kind: string

Generated using TypeDoc