From c99978cbe3106da6318e62d30e3d7f689853a7c8 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder <231804+danez@users.noreply.github.com> Date: Sat, 20 May 2023 16:21:17 +0200 Subject: [PATCH] enable noImplicitAny --- packages/react-docgen/src/Documentation.ts | 1 + tsconfig.base.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-docgen/src/Documentation.ts b/packages/react-docgen/src/Documentation.ts index 3bbd1b5fe49..f6e63d759c5 100644 --- a/packages/react-docgen/src/Documentation.ts +++ b/packages/react-docgen/src/Documentation.ts @@ -205,6 +205,7 @@ export default class DocumentationBuilder { const obj: Documentation = {}; for (const [key, value] of this.#data) { + // @ts-expect-error custom handlers can add any properties to Documentation obj[key] = value; } diff --git a/tsconfig.base.json b/tsconfig.base.json index 886415fa9e2..06750eaaddc 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -6,7 +6,7 @@ "target": "es2020", "module": "es2020", "strict": true, - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitReturns": true, "noUncheckedIndexedAccess": true, "noUnusedLocals": true,