From d9cb32b25715a45160679fa4036965e9bf22a617 Mon Sep 17 00:00:00 2001 From: grgr-dkrk <40130327+grgr-dkrk@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:04:22 +0900 Subject: [PATCH] fix: type information is included in the storybook.requires.js output when the useJs option is used --- packages/react-native/scripts/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/generate.js b/packages/react-native/scripts/generate.js index 88732c09b5..852ca9c3a9 100644 --- a/packages/react-native/scripts/generate.js +++ b/packages/react-native/scripts/generate.js @@ -93,7 +93,7 @@ function generate({ configPath, absolute = false, useJs = false }) { const { importMap } = prepareStories({ storyEntries: normalizedStories }); global.view._preview.onStoriesChanged({ - importFn: async (importPath: string) => importMap[importPath], + importFn: async (importPath) => importMap[importPath], }); global.view._preview.onGetProjectAnnotationsChanged({