Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 527 Bytes

File metadata and controls

16 lines (11 loc) · 527 Bytes

Home > @snowplow/node-tracker > SelfDescribingJson

SelfDescribingJson type

Export interface for any Self-Describing JSON such as context or Self Describing events

Signature:

type SelfDescribingJson<T = Record<string, unknown>> = {
    schema: string;
    data: T extends any[] ? never : T extends {} ? T : never;
};