Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Jan 20, 2025
1 parent 5a7e109 commit e8c355f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/browser/src/plugins/segmentio/shared-dispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,10 @@ export interface StandardDispatcherConfig extends DispatchFetchConfig {}

export type DeliveryStrategy =
| {
strategy: 'batching'
config?: BatchingDispatchConfig
}
| {
strategy: 'standard'
config?: StandardDispatcherConfig
strategy?: 'standard'
config: StandardDispatcherConfig
}
| {
// if no strategy is provided, we default to standard
config: StandardDispatcherConfig
strategy: 'batching'
config?: BatchingDispatchConfig
}

0 comments on commit e8c355f

Please sign in to comment.