mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge pull request #7999 from chrootsu/lodash-unset
lodash: changed _.unset
This commit is contained in:
Vendored
+31
-15
@@ -5295,21 +5295,6 @@ declare module _ {
|
||||
): any[];
|
||||
}
|
||||
|
||||
//_.unset
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Removes the property at path of object.
|
||||
*
|
||||
* @param object The object to modify.
|
||||
* @param path The path of the property to unset.
|
||||
* @return Returns true if the property is deleted, else false.
|
||||
*/
|
||||
unset<T>(
|
||||
object: T,
|
||||
path: StringRepresentable | StringRepresentable[]
|
||||
): boolean;
|
||||
}
|
||||
|
||||
//_.unzip
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
@@ -15922,6 +15907,37 @@ declare module _ {
|
||||
): LoDashImplicitArrayWrapper<TResult>;
|
||||
}
|
||||
|
||||
//_.unset
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Removes the property at path of object.
|
||||
*
|
||||
* Note: This method mutates object.
|
||||
*
|
||||
* @param object The object to modify.
|
||||
* @param path The path of the property to unset.
|
||||
* @return Returns true if the property is deleted, else false.
|
||||
*/
|
||||
unset<T>(
|
||||
object: T,
|
||||
path: StringRepresentable|StringRepresentable[]
|
||||
): boolean;
|
||||
}
|
||||
|
||||
interface LoDashImplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.unset
|
||||
*/
|
||||
unset(path: StringRepresentable|StringRepresentable[]): LoDashImplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.unset
|
||||
*/
|
||||
unset(path: StringRepresentable|StringRepresentable[]): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.values
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user