(event: E, properties: PosthogEventMap[E], options?: CaptureOptions)
| 5 | import { PosthogEvent, PosthogEventMap } from "../lib/posthogEvents"; |
| 6 | |
| 7 | export function captureEvent<E extends PosthogEvent>(event: E, properties: PosthogEventMap[E], options?: CaptureOptions) { |
| 8 | if(!options) { |
| 9 | options = {}; |
| 10 | } |
| 11 | options.send_instantly = true; |
| 12 | posthog.capture(event, properties, options); |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * Captures a distinct action as a event and forwards it to the event service |
no outgoing calls
no test coverage detected