refactoring
This commit is contained in:
@@ -298,13 +298,10 @@ export class Node<Options = any, Commands = {}> {
|
||||
return new Node<O, C>(config)
|
||||
}
|
||||
|
||||
configure(options?: Partial<Options>) {
|
||||
configure(options: Partial<Options> = {}) {
|
||||
return Node
|
||||
.create<Options, Commands>(this.config as NodeConfig<Options, Commands>)
|
||||
.#configure({
|
||||
...this.config.defaultOptions,
|
||||
...options,
|
||||
})
|
||||
.#configure(options)
|
||||
}
|
||||
|
||||
#configure = (options: Partial<Options>) => {
|
||||
|
||||
Reference in New Issue
Block a user