Update parameter names and add Node.js type definitions
Renamed `url` to `path` in `trackPageView` method to reflect its actual use. Added `@types/node` package to the dependencies for improved type safety and development experience.
This commit is contained in:
@@ -77,9 +77,9 @@ export function createAnalyticsManager<T extends string, Config extends object>(
|
||||
);
|
||||
},
|
||||
|
||||
trackPageView: (url: string) => {
|
||||
trackPageView: (path: string) => {
|
||||
return Promise.all(
|
||||
getActiveServices().map((service) => service.trackPageView(url)),
|
||||
getActiveServices().map((service) => service.trackPageView(path)),
|
||||
);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user