Skip to main content

node-tracker.selfdescribingjson

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;
};