mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
lodash: signatures of the method _.deburr changed
This commit is contained in:
+14
-2
@@ -3776,8 +3776,20 @@ module TestCapitalize {
|
||||
}
|
||||
|
||||
// _.deburr
|
||||
result = <string>_.deburr('déjà vu');
|
||||
result = <string>_('déjà vu').deburr();
|
||||
module TestDeburr {
|
||||
{
|
||||
let result: string;
|
||||
|
||||
result = _.deburr('déjà vu');
|
||||
result = _('déjà vu').deburr();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<string>;
|
||||
|
||||
result = _('déjà vu').chain().deburr();
|
||||
}
|
||||
}
|
||||
|
||||
// _.endsWith
|
||||
module TestEndsWith {
|
||||
|
||||
Vendored
+8
@@ -9180,6 +9180,7 @@ declare module _ {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@@ -9193,6 +9194,13 @@ declare module _ {
|
||||
deburr(): string;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.deburr
|
||||
*/
|
||||
deburr(): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
//_.endsWith
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user