mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 01:12:56 +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.
|
||||
*/
|
||||
characters?: (options: {
|
||||
characters?: (options?: {
|
||||
node?: ProseMirrorNode,
|
||||
mode?: 'textSize' | 'nodeSize',
|
||||
}) => number,
|
||||
@ -25,7 +25,7 @@ export interface CharacterCountStorage {
|
||||
/**
|
||||
* Get the number of words for the current document.
|
||||
*/
|
||||
words?: (options: {
|
||||
words?: (options?: {
|
||||
node?: ProseMirrorNode,
|
||||
}) => number,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user