revert: "fix(core): update the typing of addOptions, addStorage to have an optional parent #5768 (#5770)"

This reverts commit d2f366d6d4.
This commit is contained in:
Nick the Sick 2024-11-22 09:52:49 +01:00
parent d57042cd78
commit 2f401d4926
No known key found for this signature in database
GPG Key ID: F575992F156E5BCC
3 changed files with 6 additions and 6 deletions

View File

@ -61,7 +61,7 @@ declare module '@tiptap/core' {
*/
addOptions?: (this: {
name: string
parent: ParentConfig<ExtensionConfig<Options, Storage>>['addOptions']
parent: Exclude<ParentConfig<ExtensionConfig<Options, Storage>>['addOptions'], undefined>
}) => Options
/**
@ -76,7 +76,7 @@ declare module '@tiptap/core' {
addStorage?: (this: {
name: string
options: Options
parent: ParentConfig<ExtensionConfig<Options, Storage>>['addStorage']
parent: Exclude<ParentConfig<ExtensionConfig<Options, Storage>>['addStorage'], undefined>
}) => Storage
/**

View File

@ -64,7 +64,7 @@ declare module '@tiptap/core' {
*/
addOptions?: (this: {
name: string
parent: ParentConfig<MarkConfig<Options, Storage>>['addOptions']
parent: Exclude<ParentConfig<MarkConfig<Options, Storage>>['addOptions'], undefined>
}) => Options
/**
@ -79,7 +79,7 @@ declare module '@tiptap/core' {
addStorage?: (this: {
name: string
options: Options
parent: ParentConfig<MarkConfig<Options, Storage>>['addStorage']
parent: Exclude<ParentConfig<MarkConfig<Options, Storage>>['addStorage'], undefined>
}) => Storage
/**

View File

@ -65,7 +65,7 @@ declare module '@tiptap/core' {
*/
addOptions?: (this: {
name: string
parent: ParentConfig<NodeConfig<Options, Storage>>['addOptions']
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addOptions'], undefined>
}) => Options
/**
@ -80,7 +80,7 @@ declare module '@tiptap/core' {
addStorage?: (this: {
name: string
options: Options
parent: ParentConfig<NodeConfig<Options, Storage>>['addStorage']
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addStorage'], undefined>
}) => Storage
/**