mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-12 12:10:48 +08:00
[#8834] Several underscore "chain" methods return boolean values.
They actually return _ChainSingle<boolean>, not _Chain<T>.
This commit is contained in:
1 parent
e8f8e7471b
commit
194c294eaa
1 file changed
+5
-5
Vendored
+5
-5
@@ -5064,30 +5064,30 @@ interface _Chain<T> {
|
||||
/**
|
||||
* @see _.all
|
||||
**/
|
||||
every(iterator?: _.ListIterator<T, boolean>, context?: any): _Chain<T>;
|
||||
every(iterator?: _.ListIterator<T, boolean>, context?: any): _ChainSingle<boolean>;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
* @see _.any
|
||||
**/
|
||||
any(iterator?: _.ListIterator<T, boolean>, context?: any): _Chain<T>;
|
||||
any(iterator?: _.ListIterator<T, boolean>, context?: any): _ChainSingle<boolean>;
|
||||
|
||||
/**
|
||||
* @see _.any
|
||||
**/
|
||||
some(iterator?: _.ListIterator<T, boolean>, context?: any): _Chain<T>;
|
||||
some(iterator?: _.ListIterator<T, boolean>, context?: any): _ChainSingle<boolean>;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
* @see _.contains
|
||||
**/
|
||||
contains(value: T): _Chain<T>;
|
||||
contains(value: T): _ChainSingle<boolean>;
|
||||
|
||||
/**
|
||||
* Alias for 'contains'.
|
||||
* @see contains
|
||||
**/
|
||||
include(value: T): _Chain<T>;
|
||||
include(value: T): _ChainSingle<boolean>;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
|
||||
Reference in new issue
Block a user