mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 09:25:29 +08:00
fix: fix types for characterCount storage methods
This commit is contained in:
parent
49a99a0410
commit
d1daf9cca0
@ -17,7 +17,7 @@ export interface CharacterCountStorage {
|
|||||||
/**
|
/**
|
||||||
* Get the number of characters for the current document.
|
* Get the number of characters for the current document.
|
||||||
*/
|
*/
|
||||||
characters?: (options: {
|
characters?: (options?: {
|
||||||
node?: ProseMirrorNode,
|
node?: ProseMirrorNode,
|
||||||
mode?: 'textSize' | 'nodeSize',
|
mode?: 'textSize' | 'nodeSize',
|
||||||
}) => number,
|
}) => number,
|
||||||
@ -25,7 +25,7 @@ export interface CharacterCountStorage {
|
|||||||
/**
|
/**
|
||||||
* Get the number of words for the current document.
|
* Get the number of words for the current document.
|
||||||
*/
|
*/
|
||||||
words?: (options: {
|
words?: (options?: {
|
||||||
node?: ProseMirrorNode,
|
node?: ProseMirrorNode,
|
||||||
}) => number,
|
}) => number,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user