fix: fix types for characterCount storage methods

This commit is contained in:
Philipp Kühn 2021-12-10 17:10:57 +01:00
parent 49a99a0410
commit d1daf9cca0

View File

@ -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,
} }