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": [ "../"