diff --git a/types/react-native-uuid/index.d.ts b/types/react-native-uuid/index.d.ts index 4b65a801dd..78d98b6d7e 100644 --- a/types/react-native-uuid/index.d.ts +++ b/types/react-native-uuid/index.d.ts @@ -16,7 +16,7 @@ interface v4 { rng?: (...args: any) => void; } -export interface uuid { +interface uuid { v1: (options?: v1, buffer?: ArrayBuffer, offset?: number) => string; v4: (options?: v4, buffer?: ArrayBuffer, offset?: number) => string; parse: (id: string, buffer?: ArrayBuffer, offset?: number) => ArrayBuffer; @@ -25,4 +25,4 @@ export interface uuid { } declare const uuid: uuid; -export default uuid; +export = uuid; diff --git a/types/react-native-uuid/tsconfig.json b/types/react-native-uuid/tsconfig.json index 7494c6152e..61edf9448d 100644 --- a/types/react-native-uuid/tsconfig.json +++ b/types/react-native-uuid/tsconfig.json @@ -4,6 +4,7 @@ "lib": [ "es6" ], + "allowSyntheticDefaultImports": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true,