File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
consent/consent-tools/src/types Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ export interface CDNSettings {
144144 * { "Fullstory": {...}, "Braze Web Mode (Actions)": {...} }
145145 */
146146export interface CDNSettingsIntegrations {
147- 'Segment.io' : any
148- [ integrationName : string ] : Record < string , any >
147+ 'Segment.io' : Record < string , unknown >
148+ [ integrationName : string ] : Record < string , unknown >
149149}
150150
151151export interface CDNSettingsRemotePlugin {
Original file line number Diff line number Diff line change 1- import { CDNSettings } from '@segment/analytics-next'
2- import { AnyAnalytics } from '../../types'
1+ import { AnyAnalytics , CDNSettings } from '../../types'
32import { SignalGenerator } from '../signal-generators/types'
43import { createInstrumentationSignal } from '../../types/factories'
54
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ export type AutoInstrumentationCDNSettings = {
1313}
1414
1515export interface CDNSettings {
16- integrations : CDNSettingsIntegrations
17- edgeFunction ?: EdgeFnCDNSettings | { [ key : string ] : never }
16+ edgeFunction ?: EdgeFnCDNSettings | { }
1817 autoInstrumentationSettings ?: AutoInstrumentationCDNSettings
1918 [ key : string ] : unknown
2019}
@@ -77,8 +76,8 @@ export interface AnyAnalytics {
7776 * { "Fullstory": {...}, "Braze Web Mode (Actions)": {...} }
7877 */
7978export interface CDNSettingsIntegrations {
80- 'Segment.io' : any
81- [ integrationName : string ] : { [ key : string ] : any }
79+ 'Segment.io' : any // this is unsafe, but it's also backward compatible and will have
80+ [ integrationName : string ] : Record < string , unknown >
8281}
8382
8483export type PluginType = 'before' | 'after' | 'destination'
You can’t perform that action at this time.
0 commit comments