mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 00:30:14 +00:00
Make integrations values more permissive
This commit is contained in:
@@ -135,22 +135,28 @@ function testGroup(): void {
|
||||
|
||||
function testIntegrations(): void {
|
||||
analytics.track({
|
||||
event: 'Upgraded Membershipt',
|
||||
event: 'Upgraded Membership',
|
||||
userId: '97234974',
|
||||
integrations: {
|
||||
'All': false,
|
||||
'Vero': true,
|
||||
'Google Analytics': false
|
||||
'Google Analytics': false,
|
||||
'AppsFlyer': {
|
||||
'appsflyer_id': 'example-id'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
analytics.track({
|
||||
event: 'Upgraded Membershipt',
|
||||
event: 'Upgraded Membership',
|
||||
userId: '97234974',
|
||||
integrations: {
|
||||
'All': false,
|
||||
'Vero': true,
|
||||
'Google Analytics': false
|
||||
'Google Analytics': false,
|
||||
'AppsFlyer': {
|
||||
'appsflyer_id': 'example-id'
|
||||
}
|
||||
}
|
||||
}, (err, data) => {
|
||||
if (err) {
|
||||
|
||||
4
types/analytics-node/index.d.ts
vendored
4
types/analytics-node/index.d.ts
vendored
@@ -33,9 +33,11 @@ declare namespace AnalyticsNode {
|
||||
}
|
||||
|
||||
interface Integrations {
|
||||
[index: string]: boolean;
|
||||
[integration_name: string]: IntegrationValue
|
||||
}
|
||||
|
||||
type IntegrationValue = boolean | { [integration_key: string] : any };
|
||||
|
||||
export class Analytics {
|
||||
constructor(writeKey: string, opts?: {
|
||||
flushAt?: number,
|
||||
|
||||
Reference in New Issue
Block a user