fix(docs): edit imported type in docs for custom filter (#139)

This commit is contained in:
Christian Alares
2025-04-02 11:39:13 +02:00
committed by GitHub
parent c5d25779c6
commit 62dbe7e7c6

View File

@@ -78,7 +78,7 @@ This options needs to be a stringified function and cannot access any variables
To take advantage of typescript you can do the following. _Note `toString`_
```tsx /.toString();/
import { type OpenPanelOptions } from '@openpanel/nextjs';
import { type TrackHandlerPayload } from '@openpanel/nextjs';
const opFilter = ((event: TrackHandlerPayload) => {
return event.type === 'track' && event.payload.name === 'my_event';