mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #6636 from chrootsu/lodash-uniqueId
lodash: signatures of the method _.uniqueId have been changed
This commit is contained in:
+16
-3
@@ -6180,9 +6180,22 @@ module TestTimes {
|
||||
}
|
||||
|
||||
// _.uniqueId
|
||||
result = <string>_.uniqueId();
|
||||
result = <string>_.uniqueId('');
|
||||
result = <string>_('').uniqueId();
|
||||
module TestUniqueId {
|
||||
{
|
||||
let result: string;
|
||||
|
||||
result = _.uniqueId();
|
||||
result = _.uniqueId('');
|
||||
|
||||
result = _('').uniqueId();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<string>;
|
||||
|
||||
result = _('').chain().uniqueId();
|
||||
}
|
||||
}
|
||||
|
||||
result = <string>_.VERSION;
|
||||
result = <_.Support>_.support;
|
||||
|
||||
Vendored
+8
@@ -11784,6 +11784,7 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Generates a unique ID. If prefix is provided the ID is appended to it.
|
||||
*
|
||||
* @param prefix The value to prefix the ID with.
|
||||
* @return Returns the unique ID.
|
||||
*/
|
||||
@@ -11797,6 +11798,13 @@ declare module _ {
|
||||
uniqueId(): string;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<T> {
|
||||
/**
|
||||
* @see _.uniqueId
|
||||
*/
|
||||
uniqueId(): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
interface ListIterator<T, TResult> {
|
||||
(value: T, index: number, collection: List<T>): TResult;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user