mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-24 03:39:01 +08:00
This commit is contained in:
parent
cc4b82654a
commit
d2f366d6d4
5
.changeset/happy-vans-smash.md
Normal file
5
.changeset/happy-vans-smash.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tiptap/core": patch
|
||||
---
|
||||
|
||||
Updates the types of `addOptions` and `addStorage` to have the parent be possibly undefined which is the most accurate typing
|
@ -61,7 +61,7 @@ declare module '@tiptap/core' {
|
||||
*/
|
||||
addOptions?: (this: {
|
||||
name: string
|
||||
parent: Exclude<ParentConfig<ExtensionConfig<Options, Storage>>['addOptions'], undefined>
|
||||
parent: ParentConfig<ExtensionConfig<Options, Storage>>['addOptions']
|
||||
}) => Options
|
||||
|
||||
/**
|
||||
@ -76,7 +76,7 @@ declare module '@tiptap/core' {
|
||||
addStorage?: (this: {
|
||||
name: string
|
||||
options: Options
|
||||
parent: Exclude<ParentConfig<ExtensionConfig<Options, Storage>>['addStorage'], undefined>
|
||||
parent: ParentConfig<ExtensionConfig<Options, Storage>>['addStorage']
|
||||
}) => Storage
|
||||
|
||||
/**
|
||||
|
@ -64,7 +64,7 @@ declare module '@tiptap/core' {
|
||||
*/
|
||||
addOptions?: (this: {
|
||||
name: string
|
||||
parent: Exclude<ParentConfig<MarkConfig<Options, Storage>>['addOptions'], undefined>
|
||||
parent: ParentConfig<MarkConfig<Options, Storage>>['addOptions']
|
||||
}) => Options
|
||||
|
||||
/**
|
||||
@ -79,7 +79,7 @@ declare module '@tiptap/core' {
|
||||
addStorage?: (this: {
|
||||
name: string
|
||||
options: Options
|
||||
parent: Exclude<ParentConfig<MarkConfig<Options, Storage>>['addStorage'], undefined>
|
||||
parent: ParentConfig<MarkConfig<Options, Storage>>['addStorage']
|
||||
}) => Storage
|
||||
|
||||
/**
|
||||
|
@ -65,7 +65,7 @@ declare module '@tiptap/core' {
|
||||
*/
|
||||
addOptions?: (this: {
|
||||
name: string
|
||||
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addOptions'], undefined>
|
||||
parent: ParentConfig<NodeConfig<Options, Storage>>['addOptions']
|
||||
}) => Options
|
||||
|
||||
/**
|
||||
@ -80,7 +80,7 @@ declare module '@tiptap/core' {
|
||||
addStorage?: (this: {
|
||||
name: string
|
||||
options: Options
|
||||
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addStorage'], undefined>
|
||||
parent: ParentConfig<NodeConfig<Options, Storage>>['addStorage']
|
||||
}) => Storage
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user