uid-safe: Set Promise type to string.

This commit is contained in:
Nathan Phillip Brink
2018-08-11 04:10:47 +00:00
parent b3387d6338
commit fa4eab07a9
+1 -1
View File
@@ -8,7 +8,7 @@ declare namespace UID {
export interface Generate {
(byteLength: number, callback: (err: any, str: string) => any): void;
(byteLength: number): Promise<any>;
(byteLength: number): Promise<string>;
sync(byteLength: number): string;
}