| 2 | import { captureEvent } from './posthog'; |
| 3 | |
| 4 | interface ApiHandlerConfig { |
| 5 | /** |
| 6 | * Whether to track this API request in PostHog. |
| 7 | * @default true |
| 8 | */ |
| 9 | track?: boolean; |
| 10 | } |
| 11 | |
| 12 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 13 | type AnyHandler = (...args: any[]) => Promise<Response> | Response; |
nothing calls this directly
no outgoing calls
no test coverage detected