Skip to content

Commit 9d0d8e1

Browse files
committed
Fix gtag TypeScript declaration conflict
1 parent 342691b commit 9d0d8e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/GoogleAnalytics.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const GA_MEASUREMENT_ID = "G-D2HKD61NJ1";
77

88
declare global {
99
interface Window {
10-
gtag: (...args: unknown[]) => void;
10+
gtag?: (...args: unknown[]) => void;
1111
}
1212
}
1313

0 commit comments

Comments
 (0)