From 39f501fa2f705c6d7c54813d4e61e630a3eb7361 Mon Sep 17 00:00:00 2001 From: nuria1110 Date: Tue, 12 May 2026 13:07:09 +0100 Subject: [PATCH] chore: fix automatic argType inference for storybook controls --- .storybook/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.storybook/main.ts b/.storybook/main.ts index db9a6fbd1b..b9278f6df2 100644 --- a/.storybook/main.ts +++ b/.storybook/main.ts @@ -127,7 +127,11 @@ const config: StorybookConfig = { // Exclude legacy Switch component from react-docgen as it's intended to be removed // in a future release and causes confusion for Storybook generating docs. reactDocgenTypescriptOptions: { + compilerOptions: { + esModuleInterop: true, + }, exclude: ["**/switch/switch.component.tsx"], + savePropValueAsString: true, }, },