This commit is contained in:
Bartosz Dotryw
2018-11-04 23:51:51 +01:00
parent b0f800cc81
commit 3da08ff68f
2 changed files with 6 additions and 3 deletions
+5 -3
View File
@@ -3,7 +3,9 @@
// Definitions by: Bartosz Dotryw <https://github.com/burtek>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default class UUIDGenerator {
static getRandomUUID(): Promise<string>;
static getRandomUUID(callback: (uuid: string) => void): void;
declare namespace UUIDGenerator {
function getRandomUUID(): Promise<string>;
function getRandomUUID(callback: (uuid: string) => void): void;
}
export default UUIDGenerator;
@@ -7,6 +7,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"