mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
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:
parent
d57042cd78
commit
2f401d4926
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user