From fc675b804387361e77b32b103dfb557102e64e65 Mon Sep 17 00:00:00 2001 From: Pooya Jaferian Date: Wed, 7 Dec 2022 16:24:18 -0800 Subject: [PATCH] scope the ts-config changes to browser package --- packages/browser/tsconfig.json | 3 ++- packages/core/src/validation/helpers.ts | 4 +++- tsconfig.json | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/browser/tsconfig.json b/packages/browser/tsconfig.json index 14e0c3e37..9820d2908 100644 --- a/packages/browser/tsconfig.json +++ b/packages/browser/tsconfig.json @@ -11,7 +11,8 @@ "baseUrl": "./src", "paths": { "@/*": ["./*"] - } + }, + "keyofStringsOnly": true }, "exclude": ["node_modules", "dist"] } diff --git a/packages/core/src/validation/helpers.ts b/packages/core/src/validation/helpers.ts index ce3d5c1e3..013a4d0d2 100644 --- a/packages/core/src/validation/helpers.ts +++ b/packages/core/src/validation/helpers.ts @@ -12,7 +12,9 @@ export function isFunction(obj: unknown): obj is Function { return typeof obj === 'function' } -export function isPlainObject(obj: unknown): obj is Record { +export function isPlainObject( + obj: unknown +): obj is Record { return ( Object.prototype.toString.call(obj).slice(8, -1).toLowerCase() === 'object' ) diff --git a/tsconfig.json b/tsconfig.json index cdb7cd06a..a46d32e2f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,7 @@ "esModuleInterop": true, "skipLibCheck": true, "noUnusedLocals": true, - "noUnusedParameters": true, - "keyofStringsOnly": true + "noUnusedParameters": true }, "ts-node": { "transpileOnly": true,