diff --git a/packages/wordcount/src/index.ts b/packages/wordcount/src/index.ts index aa1f8af70f5261..17360ed34c2fc5 100644 --- a/packages/wordcount/src/index.ts +++ b/packages/wordcount/src/index.ts @@ -117,7 +117,7 @@ function countCharacters( export function count( text: string, type: Strategy, - userSettings: UserSettings + userSettings?: UserSettings ): number { const settings = loadSettings( type, userSettings ); let matchRegExp: RegExp;