mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-30 12:50:40 +08:00
Update sugar.d.ts
argument 'all' is optional for `String.capitalize`
This commit is contained in:
1 parent
b59ef1721b
commit
b0aa332627
1 file changed
+1
-1
Vendored
+1
-1
@@ -111,7 +111,7 @@ interface String {
|
||||
* 'hello kitty'.capitalize(true) -> 'Hello Kitty'
|
||||
*
|
||||
**/
|
||||
capitalize(all: boolean): string;
|
||||
capitalize(all?: boolean): string;
|
||||
|
||||
/**
|
||||
* Runs callback [fn] against each character in the string.
|
||||
|
||||
Reference in new issue
Block a user