swetrix 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esnext/Lib.d.ts +1 -1
- package/package.json +1 -1
- package/src/Lib.ts +1 -1
package/dist/esnext/Lib.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ export interface PageViewsOptions {
|
|
|
82
82
|
* @param payload - The pageview payload.
|
|
83
83
|
* @returns The edited payload or `false` to prevent sending the pageview. If `true` is returned, the payload will be sent as-is.
|
|
84
84
|
*/
|
|
85
|
-
callback?: (payload: IPageViewPayload) => IPageViewPayload | boolean;
|
|
85
|
+
callback?: (payload: IPageViewPayload) => Partial<IPageViewPayload> | boolean;
|
|
86
86
|
}
|
|
87
87
|
export declare const defaultPageActions: {
|
|
88
88
|
stop(): void;
|
package/package.json
CHANGED
package/src/Lib.ts
CHANGED
|
@@ -112,7 +112,7 @@ export interface PageViewsOptions {
|
|
|
112
112
|
* @param payload - The pageview payload.
|
|
113
113
|
* @returns The edited payload or `false` to prevent sending the pageview. If `true` is returned, the payload will be sent as-is.
|
|
114
114
|
*/
|
|
115
|
-
callback?: (payload: IPageViewPayload) => IPageViewPayload | boolean
|
|
115
|
+
callback?: (payload: IPageViewPayload) => Partial<IPageViewPayload> | boolean
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
export const defaultPageActions = {
|