From 62dbe7e7c655dff6a0be4ddd5672b06793001e60 Mon Sep 17 00:00:00 2001 From: Christian Alares Date: Wed, 2 Apr 2025 11:39:13 +0200 Subject: [PATCH] fix(docs): edit imported type in docs for custom filter (#139) --- apps/public/content/docs/sdks/nextjs.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/public/content/docs/sdks/nextjs.mdx b/apps/public/content/docs/sdks/nextjs.mdx index 80c60221..6242ab15 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';