diff --git a/packages/core/src/Extension.ts b/packages/core/src/Extension.ts index fa649aa34..a4f98853c 100644 --- a/packages/core/src/Extension.ts +++ b/packages/core/src/Extension.ts @@ -61,7 +61,7 @@ declare module '@tiptap/core' { */ addOptions?: (this: { name: string - parent: ParentConfig>['addOptions'] + parent: Exclude>['addOptions'], undefined> }) => Options /** @@ -76,7 +76,7 @@ declare module '@tiptap/core' { addStorage?: (this: { name: string options: Options - parent: ParentConfig>['addStorage'] + parent: Exclude>['addStorage'], undefined> }) => Storage /** diff --git a/packages/core/src/Mark.ts b/packages/core/src/Mark.ts index ea57edd7f..6893bfce2 100644 --- a/packages/core/src/Mark.ts +++ b/packages/core/src/Mark.ts @@ -64,7 +64,7 @@ declare module '@tiptap/core' { */ addOptions?: (this: { name: string - parent: ParentConfig>['addOptions'] + parent: Exclude>['addOptions'], undefined> }) => Options /** @@ -79,7 +79,7 @@ declare module '@tiptap/core' { addStorage?: (this: { name: string options: Options - parent: ParentConfig>['addStorage'] + parent: Exclude>['addStorage'], undefined> }) => Storage /** diff --git a/packages/core/src/Node.ts b/packages/core/src/Node.ts index 567e0eef7..b0170983e 100644 --- a/packages/core/src/Node.ts +++ b/packages/core/src/Node.ts @@ -65,7 +65,7 @@ declare module '@tiptap/core' { */ addOptions?: (this: { name: string - parent: ParentConfig>['addOptions'] + parent: Exclude>['addOptions'], undefined> }) => Options /** @@ -80,7 +80,7 @@ declare module '@tiptap/core' { addStorage?: (this: { name: string options: Options - parent: ParentConfig>['addStorage'] + parent: Exclude>['addStorage'], undefined> }) => Storage /**