mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
Merge pull request #32251 from henrymyers/segment-analytics-add-segmentopts-context
[segment-analytics] Add optional context property to SegmentOpts
This commit is contained in:
Vendored
+1
@@ -12,6 +12,7 @@ declare namespace SegmentAnalytics {
|
||||
interface SegmentOpts {
|
||||
integrations?: any;
|
||||
anonymousId?: string;
|
||||
context?: object;
|
||||
}
|
||||
|
||||
// The actual analytics.js object
|
||||
|
||||
@@ -13,6 +13,11 @@ var testProps = {
|
||||
var testOpts = {
|
||||
integrations: {
|
||||
Mixpanel: true
|
||||
},
|
||||
context: {
|
||||
campaign: {
|
||||
name: 'Cheese Promo'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user