mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
gtag.js: add support for 'js' command (#37862)
This commit is contained in:
@@ -6,6 +6,7 @@ gtag('event', 'login', {
|
||||
});
|
||||
|
||||
gtag('set', {currency: 'USD'});
|
||||
gtag('js', new Date());
|
||||
gtag('set', {
|
||||
country: 'US',
|
||||
currency: 'USD'
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user