mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +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: {
|
addOptions?: (this: {
|
||||||
name: string
|
name: string
|
||||||
parent: Exclude<ParentConfig<ExtensionConfig<Options, Storage>>['addOptions'], undefined>
|
parent: ParentConfig<ExtensionConfig<Options, Storage>>['addOptions']
|
||||||
}) => Options
|
}) => Options
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -76,7 +76,7 @@ declare module '@tiptap/core' {
|
|||||||
addStorage?: (this: {
|
addStorage?: (this: {
|
||||||
name: string
|
name: string
|
||||||
options: Options
|
options: Options
|
||||||
parent: Exclude<ParentConfig<ExtensionConfig<Options, Storage>>['addStorage'], undefined>
|
parent: ParentConfig<ExtensionConfig<Options, Storage>>['addStorage']
|
||||||
}) => Storage
|
}) => Storage
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,7 +64,7 @@ declare module '@tiptap/core' {
|
|||||||
*/
|
*/
|
||||||
addOptions?: (this: {
|
addOptions?: (this: {
|
||||||
name: string
|
name: string
|
||||||
parent: Exclude<ParentConfig<MarkConfig<Options, Storage>>['addOptions'], undefined>
|
parent: ParentConfig<MarkConfig<Options, Storage>>['addOptions']
|
||||||
}) => Options
|
}) => Options
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -79,7 +79,7 @@ declare module '@tiptap/core' {
|
|||||||
addStorage?: (this: {
|
addStorage?: (this: {
|
||||||
name: string
|
name: string
|
||||||
options: Options
|
options: Options
|
||||||
parent: Exclude<ParentConfig<MarkConfig<Options, Storage>>['addStorage'], undefined>
|
parent: ParentConfig<MarkConfig<Options, Storage>>['addStorage']
|
||||||
}) => Storage
|
}) => Storage
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,7 +65,7 @@ declare module '@tiptap/core' {
|
|||||||
*/
|
*/
|
||||||
addOptions?: (this: {
|
addOptions?: (this: {
|
||||||
name: string
|
name: string
|
||||||
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addOptions'], undefined>
|
parent: ParentConfig<NodeConfig<Options, Storage>>['addOptions']
|
||||||
}) => Options
|
}) => Options
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -80,7 +80,7 @@ declare module '@tiptap/core' {
|
|||||||
addStorage?: (this: {
|
addStorage?: (this: {
|
||||||
name: string
|
name: string
|
||||||
options: Options
|
options: Options
|
||||||
parent: Exclude<ParentConfig<NodeConfig<Options, Storage>>['addStorage'], undefined>
|
parent: ParentConfig<NodeConfig<Options, Storage>>['addStorage']
|
||||||
}) => Storage
|
}) => Storage
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user