From 0e73f425aad365ad3afe010cda24fcdfe6cff60b Mon Sep 17 00:00:00 2001 From: Ben Saufley Date: Wed, 4 Mar 2026 10:59:44 -0500 Subject: [PATCH] Update JSDoc for capitalize to remove confusing and unsupported second argument `capitalize` only takes one argument; the JSDoc included a boolean second argument that had no effect. --- src/inflection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inflection.ts b/src/inflection.ts index 65f8fb5..a495578 100644 --- a/src/inflection.ts +++ b/src/inflection.ts @@ -805,7 +805,7 @@ export function humanize(str: string, lowFirstLetter?: boolean) { * const inflection = require( 'inflection' ); * * inflection.capitalize( 'message_properties' ); // === 'Message_properties' - * inflection.capitalize( 'message properties', true ); // === 'Message properties' + * inflection.capitalize( 'message properties' ); // === 'Message properties' */ export function capitalize(str: string) { str = str.toLowerCase();