Skip to content

Commit 95fa665

Browse files
Adi-tyAdi-ty
andauthored
wordcount: fix count function signature to make userSettings parameter optional (#71106)
Co-authored-by: Adi-ty <iamadisingh@git.wordpress.org>
1 parent dbe7c4c commit 95fa665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/wordcount/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function countCharacters(
117117
export function count(
118118
text: string,
119119
type: Strategy,
120-
userSettings: UserSettings
120+
userSettings?: UserSettings
121121
): number {
122122
const settings = loadSettings( type, userSettings );
123123
let matchRegExp: RegExp;

0 commit comments

Comments
 (0)