Skip to content

Commit

Permalink
fix: use Parameters<Gtag> for datalayer (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-julien authored Jul 28, 2024
1 parent 2ca7d07 commit e0afbd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/type-declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface GTag {
(fn: 'config', opt: 'reset'): void;
}

export type DataLayer = Record<string, unknown>[];
export type DataLayer = Array<Parameters<GTag> | Record<string, unknown>>;

/* Google Tag Manager */
export interface GoogleTagManagerParams {
Expand Down

0 comments on commit e0afbd2

Please sign in to comment.