mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #6448 from chrootsu/lodash-add
lodash: signatures of the method _.add changed
This commit is contained in:
+14
-2
@@ -2992,8 +2992,20 @@ module TestToPlainObject {
|
||||
********/
|
||||
|
||||
// _.add
|
||||
result = <number>_.add(1, 1);
|
||||
result = <number>_(1).add(1);
|
||||
module TestAdd {
|
||||
{
|
||||
let result: number;
|
||||
|
||||
result = _.add(1, 1);
|
||||
result = _(1).add(1);
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<number>;
|
||||
|
||||
result = _(1).chain().add(1);
|
||||
}
|
||||
}
|
||||
|
||||
// _.ceil
|
||||
module TestCeil {
|
||||
|
||||
Vendored
+12
-1
@@ -7447,11 +7447,15 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Adds two numbers.
|
||||
*
|
||||
* @param augend The first number to add.
|
||||
* @param addend The second number to add.
|
||||
* @return Returns the sum.
|
||||
*/
|
||||
add(augend: number, addend: number): number;
|
||||
add(
|
||||
augend: number,
|
||||
addend: number
|
||||
): number;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<T> {
|
||||
@@ -7461,6 +7465,13 @@ declare module _ {
|
||||
add(addend: number): number;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.add
|
||||
*/
|
||||
add(addend: number): LoDashExplicitWrapper<number>;
|
||||
}
|
||||
|
||||
//_.ceil
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user