diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 23edca934..2bbff730c 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -1758,7 +1758,9 @@ result = _.uniqueId(); result = _.camelCase('Foo Bar'); result = _('Foo Bar').camelCase(); +// _.capitalize result = _.capitalize('fred'); +result = _('fred').capitalize(); // _.deburr result = _.deburr('déjà vu'); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 03aacca50..11f32f2a3 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -7590,8 +7590,16 @@ declare module _ { camelCase(): string; } + //_.capitalize interface LoDashStatic { - capitalize(str?: string): string; + capitalize(string?: string): string; + } + + interface LoDashWrapper { + /** + * @see _.capitalize + */ + capitalize(): string; } //_.deburr