mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
lodash: added _.castArray
This commit is contained in:
Vendored
+53
@@ -10596,6 +10596,59 @@ declare module _ {
|
||||
* Lang *
|
||||
********/
|
||||
|
||||
//_.castArray
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Casts value as an array if it’s not one.
|
||||
*
|
||||
* @param value The value to inspect.
|
||||
* @return Returns the cast array.
|
||||
*/
|
||||
castArray<T>(value: T): T[];
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.castArray
|
||||
*/
|
||||
castArray(): LoDashImplicitArrayWrapper<T>;
|
||||
}
|
||||
|
||||
interface LoDashImplicitArrayWrapper<T> {
|
||||
/**
|
||||
* @see _.castArray
|
||||
*/
|
||||
castArray(): LoDashImplicitArrayWrapper<T>;
|
||||
}
|
||||
|
||||
interface LoDashImplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.castArray
|
||||
*/
|
||||
castArray(): LoDashImplicitArrayWrapper<T>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.castArray
|
||||
*/
|
||||
castArray(): LoDashExplicitArrayWrapper<T>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitArrayWrapper<T> {
|
||||
/**
|
||||
* @see _.castArray
|
||||
*/
|
||||
castArray(): LoDashExplicitArrayWrapper<T>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.castArray
|
||||
*/
|
||||
castArray(): LoDashExplicitArrayWrapper<T>;
|
||||
}
|
||||
|
||||
//_.clone
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user