fix optional starter kit options
This commit is contained in:
@@ -171,7 +171,7 @@ export class Extension<Options = any, Commands = any> {
|
||||
return new Extension<O, C>(config)
|
||||
}
|
||||
|
||||
configure(options: Partial<Options>) {
|
||||
configure(options?: Partial<Options>) {
|
||||
return Extension
|
||||
.create<Options, Commands>(this.config as ExtensionConfig<Options, Commands>)
|
||||
.#configure({
|
||||
|
||||
@@ -231,7 +231,7 @@ export class Mark<Options = any, Commands = {}> {
|
||||
return new Mark<O, C>(config)
|
||||
}
|
||||
|
||||
configure(options: Partial<Options>) {
|
||||
configure(options?: Partial<Options>) {
|
||||
return Mark
|
||||
.create<Options, Commands>(this.config as MarkConfig<Options, Commands>)
|
||||
.#configure({
|
||||
|
||||
@@ -283,7 +283,7 @@ 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({
|
||||
|
||||
Reference in New Issue
Block a user