1- export namespace SegmentAnalytics {
2- export interface SegmentOpts {
1+ export declare namespace SegmentAnalytics {
2+ interface SegmentOpts {
33 integrations ?: any ;
44 anonymousId ?: string ;
55 context ?: object ;
66 }
77
8- export interface IntegrationsSettings {
8+ interface IntegrationsSettings {
99 // TODO remove `any`
1010 [ key : string ] : any ;
1111 }
1212
13- export interface CookieOptions {
13+ interface CookieOptions {
1414 maxage ?: number ;
1515 domain ?: string ;
1616 path ?: string ;
1717 secure ?: boolean ;
1818 }
1919
20- export interface MetricsOptions {
20+ interface MetricsOptions {
2121 host ?: string ;
2222 sampleRate ?: number ;
2323 flushTimer ?: number ;
2424 maxQueueSize ?: number ;
2525 }
2626
27- export interface StoreOptions {
27+ interface StoreOptions {
2828 enabled ?: boolean ;
2929 }
3030
31- export interface UserOptions {
31+ interface UserOptions {
3232 cookie ?: {
3333 key : string ;
3434 oldKey : string ;
@@ -39,7 +39,7 @@ export namespace SegmentAnalytics {
3939 persist ?: boolean ;
4040 }
4141
42- export interface GroupOptions {
42+ interface GroupOptions {
4343 cookie ?: {
4444 key : string ;
4545 } ;
@@ -49,12 +49,12 @@ export namespace SegmentAnalytics {
4949 persist ?: boolean ;
5050 }
5151
52- export interface SegmentIntegration {
52+ interface SegmentIntegration {
5353 All ?: boolean ;
5454 [ integration : string ] : boolean | undefined ;
5555 }
5656
57- export interface InitOptions {
57+ interface InitOptions {
5858 initialPageview ?: boolean ;
5959 cookie ?: CookieOptions ;
6060 metrics ?: MetricsOptions ;
@@ -64,7 +64,7 @@ export namespace SegmentAnalytics {
6464 integrations ?: SegmentIntegration ;
6565 }
6666
67- export interface AnalyticsJS {
67+ interface AnalyticsJS {
6868 Integrations : { [ name : string ] : unknown } ;
6969 require : any ;
7070 VERSION : any ;
@@ -270,8 +270,4 @@ export namespace SegmentAnalytics {
270270}
271271
272272declare var analytics : SegmentAnalytics . AnalyticsJS ;
273-
274- declare module '@segment/analytics.js-core' {
275- var analytics : SegmentAnalytics . AnalyticsJS ;
276- export default analytics ;
277- }
273+ export default analytics ;
0 commit comments