( trackEventFn: TrackEventFn, defaultProperties: Record<string, unknown>, )
| 34 | } |
| 35 | |
| 36 | export function withDefaultProperties( |
| 37 | trackEventFn: TrackEventFn, |
| 38 | defaultProperties: Record<string, unknown>, |
| 39 | ): TrackEventFn { |
| 40 | return (params) => { |
| 41 | trackEventFn({ |
| 42 | ...params, |
| 43 | properties: { ...defaultProperties, ...params.properties }, |
| 44 | }) |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | export function trackEvent({ |
| 49 | event, |
no outgoing calls
no test coverage detected