mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Fix underscore path param types. (#35999)
* Fix underscore path param types. * Add test * Replace all occurrences of type Object with object in Underscore types
This commit is contained in:
committed by
Daniel Rosenwasser
parent
d29117e6e4
commit
75263ecd6a
Vendored
+7
-7
@@ -3765,7 +3765,7 @@ declare module _ {
|
||||
* @param prototype The prototype that the returned object will inherit from.
|
||||
* @param props Additional props added to the returned object.
|
||||
**/
|
||||
create(prototype: any, props?: Object): any;
|
||||
create(prototype: any, props?: object): any;
|
||||
|
||||
/**
|
||||
* Create a shallow-copied clone of the object.
|
||||
@@ -3813,14 +3813,14 @@ declare module _ {
|
||||
* @param key Property of the object.
|
||||
* @return Function which accept an object an returns the value of key in that object.
|
||||
**/
|
||||
property(key: string | string[]): (object: Object) => any;
|
||||
property(key: string | number | Array<string | number>): (object: object) => any;
|
||||
|
||||
/**
|
||||
* Returns a function that will itself return the value of a object key property.
|
||||
* @param key The object to get the property value from.
|
||||
* @return Function which accept a key property in `object` and returns its value.
|
||||
**/
|
||||
propertyOf(object: Object): (key: string | string[]) => any;
|
||||
propertyOf(object: object): (key: string | number | Array<string | number>) => any;
|
||||
|
||||
/**
|
||||
* Performs an optimized deep comparison between the two objects,
|
||||
@@ -4044,7 +4044,7 @@ declare module _ {
|
||||
**/
|
||||
iteratee(value: string): Function;
|
||||
iteratee(value: Function, context?: any): Function;
|
||||
iteratee(value: Object): Function;
|
||||
iteratee(value: object): Function;
|
||||
|
||||
/**
|
||||
* Generate a globally-unique id for client-side models or DOM elements that need one.
|
||||
@@ -4811,7 +4811,7 @@ declare module _ {
|
||||
* Wrapped type `any`.
|
||||
* @see _.create
|
||||
**/
|
||||
create(props?: Object): any;
|
||||
create(props?: object): any;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
@@ -4847,7 +4847,7 @@ declare module _ {
|
||||
* Wrapped type `string`.
|
||||
* @see _.property
|
||||
**/
|
||||
property(): (object: Object) => any;
|
||||
property(): (object: object) => any;
|
||||
|
||||
/**
|
||||
* Wrapped type `object`.
|
||||
@@ -5777,7 +5777,7 @@ declare module _ {
|
||||
* Wrapped type `any`.
|
||||
* @see _.create
|
||||
**/
|
||||
create(props?: Object): _Chain<T>;
|
||||
create(props?: object): _Chain<T>;
|
||||
|
||||
/**
|
||||
* Wrapped type `any[]`.
|
||||
|
||||
@@ -394,7 +394,7 @@ _.isObject(1);
|
||||
|
||||
_.property('name')(moe);
|
||||
_.property(['name'])(moe);
|
||||
|
||||
_.property(['luckyNumbers', 2])(moe)
|
||||
|
||||
// (() => { return _.isArguments(arguments); })(1, 2, 3);
|
||||
_.isArguments([1, 2, 3]);
|
||||
|
||||
Reference in New Issue
Block a user