diff --git a/types/gtag.js/gtag.js-tests.ts b/types/gtag.js/gtag.js-tests.ts index c25db26c5f..1711b53eab 100644 --- a/types/gtag.js/gtag.js-tests.ts +++ b/types/gtag.js/gtag.js-tests.ts @@ -6,6 +6,7 @@ gtag('event', 'login', { }); gtag('set', {currency: 'USD'}); +gtag('js', new Date()); gtag('set', { country: 'US', currency: 'USD' diff --git a/types/gtag.js/index.d.ts b/types/gtag.js/index.d.ts index e20cc9d4fa..680fa9057b 100644 --- a/types/gtag.js/index.d.ts +++ b/types/gtag.js/index.d.ts @@ -8,6 +8,7 @@ declare namespace Gtag { interface Gtag { (command: 'config', targetId: string, config?: ControlParams | EventParams | CustomParams): void; (command: 'set', config: CustomParams): void; + (command: 'js', config: Date): void; (command: 'event', eventName: EventNames | string, eventParams?: ControlParams | EventParams | CustomParams): void; }