Skip to content

basalt / queue/src / splitQueuePluginOptions

Function: splitQueuePluginOptions() ​

> splitQueuePluginOptions<T>(options): object

Defined in: queue/src/index.ts:131

Splits a driver plugin's options into the core queuePlugin options and the rest (the driver's own). Undefined values are dropped.

Type Parameters ​

T ​

T extends Omit<QueuePluginOptions, "driver">

Parameters ​

options ​

T

Returns ​

object

core ​

> core: Omit<QueuePluginOptions, "driver">

driver ​

> driver: Omit<T, typeof QUEUE_PLUGIN_OPTION_KEYS[number]>

Released under the MIT License.