Deep configuration
let Kue = stampit.deepConf({
Kue: {
name: 'kue',
priority: 'normal',
attempts: 3,
delay: 500,
ttl: 5,
events: false
}
})
const HighPriorityKue = stampit.deepConf({
Kue: {
priority: 'high'
}
})
const MyKue = stampit(Kue, HighPriorityKue) // composing them together
MyKue.compose.deepConfiguration.Kue.attempts === 3
MyKue.compose.deepConfiguration.Kue.priority === 'high'Descriptor merging algorithm
Other ways to add deep configuration
Last updated