Skip to content

Commit

Permalink
fix(core): set defaultOptions to undefined by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbch committed Nov 27, 2023
1 parent e2ac600 commit 448b433
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/Extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ export class Extension<Options = any, Storage = any> {

config: ExtensionConfig = {
name: this.name,
defaultOptions: {},
defaultOptions: undefined,
}

constructor(config: Partial<ExtensionConfig<Options, Storage>> = {}) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Mark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class Mark<Options = any, Storage = any> {

config: MarkConfig = {
name: this.name,
defaultOptions: {},
defaultOptions: undefined,
}

constructor(config: Partial<MarkConfig<Options, Storage>> = {}) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/Node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export class Node<Options = any, Storage = any> {

config: NodeConfig = {
name: this.name,
defaultOptions: {},
defaultOptions: undefined,
}

constructor(config: Partial<NodeConfig<Options, Storage>> = {}) {
Expand Down

0 comments on commit 448b433

Please sign in to comment.