mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
lodash: added _.prototype.commit() method
This commit is contained in:
@@ -439,6 +439,20 @@ result = <number[]>_([1, 2]).zipWith<number>([1, 2], [1, 2], [1, 2], [1, 2], [1,
|
||||
result = _([1, 2, 3]).thru<number>((value: number[]) => value, any);
|
||||
}
|
||||
|
||||
// _.prototype.commit
|
||||
{
|
||||
let result: _.LoDashWrapper<number>;
|
||||
result = _(42).commit();
|
||||
}
|
||||
{
|
||||
let result: _.LoDashArrayWrapper<any>;
|
||||
result = _<any>([]).commit();
|
||||
}
|
||||
{
|
||||
let result: _.LoDashObjectWrapper<any>;
|
||||
result = _({}).commit();
|
||||
}
|
||||
|
||||
/**************
|
||||
* Collection *
|
||||
**************/
|
||||
|
||||
Vendored
+10
@@ -2056,6 +2056,16 @@ declare module _ {
|
||||
thisArg?: any): LoDashArrayWrapper<TResult>;
|
||||
}
|
||||
|
||||
// _.prototype.commit
|
||||
interface LoDashWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* Executes the chained sequence and returns the wrapped result.
|
||||
*
|
||||
* @return Returns the new lodash wrapper instance.
|
||||
*/
|
||||
commit(): TWrapper;
|
||||
}
|
||||
|
||||
/**************
|
||||
* Collection *
|
||||
**************/
|
||||
|
||||
Reference in New Issue
Block a user