lodash: signatures of the method _.uniqueId have been changed

This commit is contained in:
Ilya Mochalov
2015-11-06 04:04:11 +05:00
parent 35989a3ab4
commit 7f61bfa1d2
2 changed files with 24 additions and 3 deletions
+16 -3
View File
@@ -5807,9 +5807,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
@@ -11557,6 +11557,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.
*/
@@ -11570,6 +11571,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;
}