(feature) Removed aliase _.run

This commit is contained in:
DomiR
2016-01-13 23:23:15 +01:00
parent 5dd9ae353c
commit 4a5102e41b
2 changed files with 2 additions and 48 deletions

View File

@@ -2744,44 +2744,6 @@ module TestReverse {
}
}
// _.prototype.run
module TestRun {
{
let result: string;
result = _('').run();
result = _('').chain().run();
}
{
let result: number;
result = _(42).run();
result = _(42).chain().run();
}
{
let result: boolean;
result = _(true).run();
result = _(true).chain().run();
}
{
let result: string[];
result = _<string>([]).run();
result = _<string>([]).chain().run();
}
{
let result: {a: string};
result = _({a: ''}).run();
result = _({a: ''}).chain().run();
}
}
// _.prototype.toJSON
module TestToJSON {
{

12
lodash/lodash.d.ts vendored
View File

@@ -171,7 +171,7 @@ Removed 17 aliases
- [ ] Removed aliase _.inject
- [ ] Removed aliase _.methods
- [ ] Removed aliase _.object
- [ ] Removed aliase _.run
- [x] Removed aliase _.run
- [x] Removed aliase _.select
- [x] Removed aliase _.unique
@@ -4461,14 +4461,6 @@ declare module _ {
reverse(): LoDashExplicitArrayWrapper<T>;
}
//_.prototype.run
interface LoDashWrapperBase<T, TWrapper> {
/**
* @see _.value
*/
run(): T;
}
//_.prototype.toJSON
interface LoDashWrapperBase<T, TWrapper> {
/**
@@ -4492,7 +4484,7 @@ declare module _ {
/**
* Executes the chained sequence to extract the unwrapped value.
*
* @alias _.run, _.toJSON, _.valueOf
* @alias _.toJSON, _.valueOf
*
* @return Returns the resolved unwrapped value.
*/