mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-25 08:06:22 +08:00
(feature) Removed aliase _.run
This commit is contained in:
@@ -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
12
lodash/lodash.d.ts
vendored
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user