diff --git a/package.json b/package.json index 97e011c..61a5177 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "swetrix", - "version": "3.0.1", + "version": "3.0.2", "description": "The JavaScript analytics client for Swetrix Analytics", "main": "dist/swetrix.cjs.js", "module": "dist/swetrix.es5.js", diff --git a/src/Lib.ts b/src/Lib.ts index f7494ef..cf14fc5 100644 --- a/src/Lib.ts +++ b/src/Lib.ts @@ -112,7 +112,7 @@ export interface PageViewsOptions { * @param payload - The pageview payload. * @returns The edited payload or `false` to prevent sending the pageview. If `true` is returned, the payload will be sent as-is. */ - callback?: (payload: IPageViewPayload) => IPageViewPayload | boolean + callback?: (payload: IPageViewPayload) => Partial | boolean } export const defaultPageActions = {