From 4fa140df20ad8a9fa70c88d597c78f8ed0a0b953 Mon Sep 17 00:00:00 2001 From: Corban Riley Date: Fri, 26 Apr 2024 10:53:00 -0400 Subject: [PATCH] Enabling strict typing --- packages/kit/src/utils/txnDecoding.ts | 2 +- tsconfig.json | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/packages/kit/src/utils/txnDecoding.ts b/packages/kit/src/utils/txnDecoding.ts index 9d9ab3d7..af0cc0b2 100644 --- a/packages/kit/src/utils/txnDecoding.ts +++ b/packages/kit/src/utils/txnDecoding.ts @@ -252,7 +252,7 @@ const decodeTxnData = async (txns: commons.transaction.TransactionEncoded[]): Pr return createTxnData('', call, 0, callData) } catch (err) { - throw new Error(err) + throw err } } diff --git a/tsconfig.json b/tsconfig.json index fd0d13b7..2ff69d57 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,18 +8,15 @@ "resolveJsonModule": true, "allowSyntheticDefaultImports": true, "allowJs": true, + "strict": true, "strictNullChecks": true, "noImplicitAny": true, "noImplicitReturns": true, "isolatedModules": true, "skipLibCheck": true, "jsx": "react-jsx", - "typeRoots": [ - "node_modules/@types" - ], - "types": [ - "node" - ] + "typeRoots": ["node_modules/@types"], + "types": ["node"] }, - "include": ["./packages/**/src/**/*.ts", "./packages/**/src/**/*.tsx", ] + "include": ["./packages/**/src/**/*.ts", "./packages/**/src/**/*.tsx"] }