Home > @snowplow/node-tracker > buildSelfDescribingEvent
Build a self-describing event A custom event type, allowing for an event to be tracked using your own custom schema and a data object which conforms to the supplied schema
Signature:
declare function buildSelfDescribingEvent<T = Record<string, unknown>>(event: SelfDescribingEvent<T>): PayloadBuilder;| Parameter | Type | Description |
|---|---|---|
| event | SelfDescribingEvent<T> | Contains the properties and schema location for the event |
Returns:
PayloadBuilder
PayloadBuilder to be sent to