Skip to content

Commit

Permalink
fix: fix types for characterCount storage methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Kühn authored and Philipp Kühn committed Dec 10, 2021
1 parent 49a99a0 commit d1daf9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension-character-count/src/character-count.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ export interface CharacterCountStorage {
/**
* Get the number of characters for the current document.
*/
characters?: (options: {
characters?: (options?: {
node?: ProseMirrorNode,
mode?: 'textSize' | 'nodeSize',
}) => number,

/**
* Get the number of words for the current document.
*/
words?: (options: {
words?: (options?: {
node?: ProseMirrorNode,
}) => number,
}
Expand Down

0 comments on commit d1daf9c

Please sign in to comment.