From 7411e9d03dfdd8d7a812a783bfb6f5889c90ca2f Mon Sep 17 00:00:00 2001 From: Haseeb Majid Date: Sat, 23 Mar 2019 12:11:54 +0000 Subject: [PATCH] Added Suggested Changes --- types/react-native-uuid/index.d.ts | 4 ++-- types/react-native-uuid/tsconfig.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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,