From 428ec7e4f6928efc5b441cd52b06536c42d7f165 Mon Sep 17 00:00:00 2001 From: bglee Date: Sat, 8 Apr 2017 22:43:56 +0900 Subject: [PATCH] add userId to GaOptions --- types/react-ga/index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/react-ga/index.d.ts b/types/react-ga/index.d.ts index f0644c18d3..d951cb2909 100644 --- a/types/react-ga/index.d.ts +++ b/types/react-ga/index.d.ts @@ -11,7 +11,7 @@ export interface EventArgs { nonInteraction?: boolean; } -interface GaOptions { +export interface GaOptions { name?: string; clientId?: string; sampleRate?: number; @@ -24,6 +24,7 @@ interface GaOptions { legacyCookieDomain?: string; legacyHistoryImport?: boolean; allowLinker?: boolean; + userId?: string; } export interface InitializeOptions { @@ -36,19 +37,19 @@ export interface FieldsObject { [i: string]: any; } -interface TimingArgs { +export interface TimingArgs { category: string; variable: string; value: number; label?: string; } -interface Plugin { +export interface Plugin { require(name: string, options: any): void; execute(pluginName: string, action: string, actionTypeOrPayload: string|Object, payload?: Object): void; } -interface OutboundLinkArgs { +export interface OutboundLinkArgs { label: string; }