From 3da08ff68f738332ec59ff8b0d71e63328c6c963 Mon Sep 17 00:00:00 2001 From: Bartosz Dotryw Date: Sun, 4 Nov 2018 23:51:51 +0100 Subject: [PATCH] Linted --- types/react-native-uuid-generator/index.d.ts | 8 +++++--- types/react-native-uuid-generator/tsconfig.json | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/types/react-native-uuid-generator/index.d.ts b/types/react-native-uuid-generator/index.d.ts index a884354e35..6014c9dc17 100644 --- a/types/react-native-uuid-generator/index.d.ts +++ b/types/react-native-uuid-generator/index.d.ts @@ -3,7 +3,9 @@ // Definitions by: Bartosz Dotryw // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export default class UUIDGenerator { - static getRandomUUID(): Promise; - static getRandomUUID(callback: (uuid: string) => void): void; +declare namespace UUIDGenerator { + function getRandomUUID(): Promise; + function getRandomUUID(callback: (uuid: string) => void): void; } + +export default UUIDGenerator; diff --git a/types/react-native-uuid-generator/tsconfig.json b/types/react-native-uuid-generator/tsconfig.json index 777701c42e..30c1f52249 100644 --- a/types/react-native-uuid-generator/tsconfig.json +++ b/types/react-native-uuid-generator/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../"