From 2f401d492676dbbd0573aa065e540b04cb69deb3 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Fri, 22 Nov 2024 09:52:49 +0100 Subject: [PATCH] revert: "fix(core): update the typing of `addOptions`, `addStorage` to have an optional parent #5768 (#5770)" This reverts commit d2f366d6d42ddea04082b574c1d2058306ac7619. --- packages/core/src/Extension.ts | 4 ++-- packages/core/src/Mark.ts | 4 ++-- packages/core/src/Node.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) 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 /**