Skip to content

Commit

Permalink
fix: type information is included in the storybook.requires.js output…
Browse files Browse the repository at this point in the history
… when the useJs option is used
  • Loading branch information
grgr-dkrk committed Apr 12, 2024
1 parent b4f0b9b commit d7ba672
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import "@storybook/addon-ondevice-actions/register";
const { importMap } = prepareStories({ storyEntries: normalizedStories });
global.view._preview.onStoriesChanged({
importFn: async (importPath: string) => importMap[importPath],
importFn: async (importPath) => importMap[importPath],
});
global.view._preview.onGetProjectAnnotationsChanged({
Expand Down Expand Up @@ -98,7 +98,7 @@ import "@storybook/addon-ondevice-actions/register";
const { importMap } = prepareStories({ storyEntries: normalizedStories });
global.view._preview.onStoriesChanged({
importFn: async (importPath: string) => importMap[importPath],
importFn: async (importPath) => importMap[importPath],
});
global.view._preview.onGetProjectAnnotationsChanged({
Expand Down Expand Up @@ -153,7 +153,7 @@ import "@storybook/addon-ondevice-actions/register";
const { importMap } = prepareStories({ storyEntries: normalizedStories });
global.view._preview.onStoriesChanged({
importFn: async (importPath: string) => importMap[importPath],
importFn: async (importPath) => importMap[importPath],
});
global.view._preview.onGetProjectAnnotationsChanged({
Expand Down Expand Up @@ -208,7 +208,7 @@ import "@storybook/addon-ondevice-actions/register";
const { importMap } = prepareStories({ storyEntries: normalizedStories });
global.view._preview.onStoriesChanged({
importFn: async (importPath: string) => importMap[importPath],
importFn: async (importPath) => importMap[importPath],
});
global.view._preview.onGetProjectAnnotationsChanged({
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit d7ba672

Please sign in to comment.