From c0af7cd50e73ff288b3b89c50bd64dc7a7bc1ba3 Mon Sep 17 00:00:00 2001 From: Ritesh Kumar Date: Wed, 19 Feb 2020 15:35:06 +0530 Subject: [PATCH] fixes --- constants/data.ts | 4 ++-- pages/api/flow-to-typescript.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/constants/data.ts b/constants/data.ts index 23dc56f..4d30291 100644 --- a/constants/data.ts +++ b/constants/data.ts @@ -106,8 +106,8 @@ export type AlertProps = { testId: string, } -type AlertTypeIconMap = { - AlertType: ?IconType, +export type AlertTypeIconMap = { + success: 'tick' | 'started', } const Alert = ({ type, text, testId }: AlertProps) => { diff --git a/pages/api/flow-to-typescript.ts b/pages/api/flow-to-typescript.ts index 5e63207..2c02a40 100644 --- a/pages/api/flow-to-typescript.ts +++ b/pages/api/flow-to-typescript.ts @@ -19,7 +19,6 @@ export default (req: NextApiRequest, res: NextApiResponse) => { allowJs: true, declaration: true, emitDeclarationOnly: true, - module: ts.ModuleKind.ESNext, jsx: ts.JsxEmit.Preserve, skipDefaultLibCheck: true, skipLibCheck: true