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,