Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 8d65a95

Browse files
author
Bryan Mikaelian
committed
Be a little more explicit on the types
1 parent 7b6b355 commit 8d65a95

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ export declare namespace SegmentAnalytics {
55
context?: object;
66
}
77

8-
interface IntegrationsSettings {
8+
type IntegrationSettings = BaseIntegrationSettings | SegmentIOIntegrationSettings
9+
10+
interface BaseIntegrationSettings {
11+
[key: string]: unknown
12+
}
13+
14+
interface SegmentIOIntegrationSettings {
915
addBundledMetadata: boolean;
1016
apiHost?: string;
1117
apiKey?: string;

0 commit comments

Comments
 (0)