diff --git a/lib/index.d.ts b/lib/index.d.ts index 855a58af..1c2bc3fe 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -5,9 +5,22 @@ export declare namespace SegmentAnalytics { context?: object; } - interface IntegrationsSettings { - // TODO remove `any` - [key: string]: any; + type IntegrationsSettings = IntegrationSettings | SegmentIOIntegrationSettings + + interface IntegrationSettings { + [key: string]: unknown + } + + // TODO: Long term, this should probably live in analytics.js-integrations + interface SegmentIOIntegrationSettings { + addBundledMetadata: boolean; + apiHost?: string; + apiKey?: string; + crossDomainIdServers?: string[]; + deleteCrossDomainId?: boolean; + retryQueue: boolean; + saveCrossDomainIdInLocalStorage: boolean; + unbundledIntegrations: any[]; } interface CookieOptions {