mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-04 16:04:45 +08:00
lodash: changed _.deburr() method
This commit is contained in:
@@ -1652,7 +1652,11 @@ result = <string>_.uniqueId();
|
||||
|
||||
result = <string>_.camelCase('Foo Bar');
|
||||
result = <string>_.capitalize('fred');
|
||||
|
||||
// _.deburr
|
||||
result = <string>_.deburr('déjà vu');
|
||||
result = <string>_('déjà vu').deburr();
|
||||
|
||||
result = <boolean>_.endsWith('abc', 'c');
|
||||
|
||||
// _.escape
|
||||
|
||||
Vendored
+21
-1
@@ -7441,7 +7441,27 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
camelCase(str?: string): string;
|
||||
capitalize(str?: string): string;
|
||||
deburr(str?: string): string;
|
||||
}
|
||||
|
||||
//_.deburr
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Deburrs string by converting latin-1 supplementary letters to basic latin letters and removing combining
|
||||
* diacritical marks.
|
||||
* @param string The string to deburr.
|
||||
* @return Returns the deburred string.
|
||||
*/
|
||||
deburr(string?: string): string;
|
||||
}
|
||||
|
||||
interface LoDashWrapper<T> {
|
||||
/**
|
||||
* @see _.deburr
|
||||
*/
|
||||
deburr(): string;
|
||||
}
|
||||
|
||||
interface LoDashStatic {
|
||||
endsWith(str?: string, target?: string, position?: number): boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user