Merge pull request #28049 from binki/uid-safe-promise-string

uid-safe: Set Promise type to string.
This commit is contained in:
Benjamin Lichtman
2018-08-16 13:44:56 -07:00
committed by GitHub
+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;
}