From b98d24e5bb0b867505cd6d4aced45588eb747e8a Mon Sep 17 00:00:00 2001 From: idchlife Date: Wed, 30 Aug 2017 16:46:36 +0300 Subject: [PATCH 1/2] Parameter is not required --- types/uniqid/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/uniqid/index.d.ts b/types/uniqid/index.d.ts index 4e222ddb5b..aba814e485 100644 --- a/types/uniqid/index.d.ts +++ b/types/uniqid/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Commmon function signature -declare function f(prefix: string): string; +declare function f(prefix?: string): string; // let x -> Workaround for ES6 imports // Combined type because of assigning to function object in original module From f10c396bdb94e4478250bc47b6f6c3a974923ba8 Mon Sep 17 00:00:00 2001 From: idchlife Date: Mon, 4 Sep 2017 09:52:57 +0300 Subject: [PATCH 2/2] Updated project url, me as author, types url --- types/uniqid/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/uniqid/index.d.ts b/types/uniqid/index.d.ts index aba814e485..39eef672a3 100644 --- a/types/uniqid/index.d.ts +++ b/types/uniqid/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for uniqid 4.1 -// Project: https://github.com/adamhalasz/diet-uniqid/ -// Definitions by: My Self -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Project: https://github.com/adamhalasz/uniqid +// Definitions by: idchlife +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/uniqid // Commmon function signature declare function f(prefix?: string): string;