Skip to content

Commit

Permalink
callback: IPageViewPayload -> Partial<IPageViewPayload>
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Jan 31, 2024
1 parent d449496 commit a10cce5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/Lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IPageViewPayload> | boolean
}

export const defaultPageActions = {
Expand Down

0 comments on commit a10cce5

Please sign in to comment.