Merge pull request #6636 from chrootsu/lodash-uniqueId

lodash: signatures of the method _.uniqueId have been changed
This commit is contained in:
Masahiro Wakame
2015-11-11 18:13:10 +09:00
2 changed files with 24 additions and 3 deletions
+16 -3
View File
@@ -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;
+8
View File
@@ -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;
}