mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Since the official document said: "Hit type is the type of hit", it would be much clear if we use type to define HitType instead of an enum. (#23184)
This commit is contained in:
committed by
Sheetal Nandi
parent
23faf25636
commit
3dca396263
7
types/google.analytics/index.d.ts
vendored
7
types/google.analytics/index.d.ts
vendored
@@ -39,9 +39,8 @@ interface GoogleAnalytics {
|
||||
declare namespace UniversalAnalytics {
|
||||
// https://developers.google.com/analytics/devguides/collection/analyticsjs/method-reference
|
||||
|
||||
enum HitType {
|
||||
'pageview', 'screenview', 'event', 'transaction', 'item', 'social', 'exception', 'timing'
|
||||
}
|
||||
// https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#hitType
|
||||
type HitType = 'pageview' | 'screenview' | 'event' | 'transaction' | 'item' | 'social' | 'exception' | 'timing';
|
||||
|
||||
// https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference
|
||||
|
||||
@@ -294,7 +293,7 @@ declare namespace UniversalAnalytics {
|
||||
flashVersion?: string;
|
||||
forceSSL?: boolean;
|
||||
hitCallback?(): void;
|
||||
hitType?: string;
|
||||
hitType?: HitType;
|
||||
hostname?: string;
|
||||
id?: string;
|
||||
javaEnabled?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user