mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
add _.create to LoDashStatic
Something is better then nothing, adding _.create method
This commit is contained in:
Vendored
+10
@@ -6210,6 +6210,16 @@ declare module _ {
|
||||
noop(): void;
|
||||
}
|
||||
|
||||
//_.create
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Creates an object that inherits from the given prototype object. If a properties object is provided its own enumerable properties are assigned to the created object.
|
||||
* @param prototype The object to inherit from.
|
||||
* @param properties The properties to assign to the object.
|
||||
*/
|
||||
create<T>(prototype: Object, properties?: Object): Object;
|
||||
}
|
||||
|
||||
interface ListIterator<T, TResult> {
|
||||
(value: T, index: number, list: T[]): TResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user