From d7474735d4f7a3c769cdaea0e96a9831d8baab7a Mon Sep 17 00:00:00 2001 From: Dmytro Kirpa Date: Sat, 22 Aug 2026 13:03:55 +0200 Subject: [PATCH] chore: scope docsite tsconfig types so ambient typings don't leak into Storybook props tables react-docgen-typescript resolves the tsconfig.json at the Storybook cwd. These solution configs had no 'types' array, so TypeScript auto-included every package under the repo's typeRoots (including typings/focusgroup, which augments React's HTMLAttributes). That surfaced 'focusgroup' and 'focusgroupstart' as props on every documented component. Declare the types the docsites actually need, matching the library/stories tsconfigs. --- apps/chart-docsite/tsconfig.json | 3 ++- apps/public-docsite-v9-headless/tsconfig.json | 3 ++- apps/public-docsite-v9/tsconfig.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/chart-docsite/tsconfig.json b/apps/chart-docsite/tsconfig.json index a85a689b302436..6489a363140613 100644 --- a/apps/chart-docsite/tsconfig.json +++ b/apps/chart-docsite/tsconfig.json @@ -5,7 +5,8 @@ "allowJs": false, "esModuleInterop": false, "allowSyntheticDefaultImports": true, - "strict": true + "strict": true, + "types": ["static-assets", "environment"] }, "files": [], "include": [], diff --git a/apps/public-docsite-v9-headless/tsconfig.json b/apps/public-docsite-v9-headless/tsconfig.json index 1c0b3afbde8d0d..3399838baa5302 100644 --- a/apps/public-docsite-v9-headless/tsconfig.json +++ b/apps/public-docsite-v9-headless/tsconfig.json @@ -7,7 +7,8 @@ "experimentalDecorators": true, "noUnusedLocals": true, "strictNullChecks": true, - "noImplicitAny": true + "noImplicitAny": true, + "types": ["static-assets", "environment"] }, "include": [], "files": [], diff --git a/apps/public-docsite-v9/tsconfig.json b/apps/public-docsite-v9/tsconfig.json index 3dcf162cfde049..bd9c3cdc5a6dc9 100644 --- a/apps/public-docsite-v9/tsconfig.json +++ b/apps/public-docsite-v9/tsconfig.json @@ -7,7 +7,8 @@ "experimentalDecorators": true, "noUnusedLocals": true, "strictNullChecks": true, - "noImplicitAny": true + "noImplicitAny": true, + "types": ["static-assets", "environment"] }, "include": [], "files": [],