Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

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

Christian Alares62dbe7e7c655
diff --git a/apps/public/content/docs/sdks/nextjs.mdx b/apps/public/content/docs/sdks/nextjs.mdx
index 80c602219..6242ab156 100644
--- a/apps/public/content/docs/sdks/nextjs.mdx
+++ b/apps/public/content/docs/sdks/nextjs.mdx
@@ -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';