Skip to content

Commit e8c355f

Browse files
committed
wip
1 parent 5a7e109 commit e8c355f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

packages/browser/src/plugins/segmentio/shared-dispatcher.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,10 @@ export interface StandardDispatcherConfig extends DispatchFetchConfig {}
7373

7474
export type DeliveryStrategy =
7575
| {
76-
strategy: 'batching'
77-
config?: BatchingDispatchConfig
78-
}
79-
| {
80-
strategy: 'standard'
81-
config?: StandardDispatcherConfig
76+
strategy?: 'standard'
77+
config: StandardDispatcherConfig
8278
}
8379
| {
84-
// if no strategy is provided, we default to standard
85-
config: StandardDispatcherConfig
80+
strategy: 'batching'
81+
config?: BatchingDispatchConfig
8682
}

0 commit comments

Comments
 (0)