We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7e109 commit e8c355fCopy full SHA for e8c355f
packages/browser/src/plugins/segmentio/shared-dispatcher.ts
@@ -73,14 +73,10 @@ export interface StandardDispatcherConfig extends DispatchFetchConfig {}
73
74
export type DeliveryStrategy =
75
| {
76
- strategy: 'batching'
77
- config?: BatchingDispatchConfig
78
- }
79
- | {
80
- strategy: 'standard'
81
- config?: StandardDispatcherConfig
+ strategy?: 'standard'
+ config: StandardDispatcherConfig
82
}
83
84
- // if no strategy is provided, we default to standard
85
- config: StandardDispatcherConfig
+ strategy: 'batching'
+ config?: BatchingDispatchConfig
86
0 commit comments