Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 08fda7b

Browse files
committed
fix: add back type-checking
1 parent da5803d commit 08fda7b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

site/.storybook/preview.jsx

+18
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
// @ts-check
2+
/**
3+
* @file Defines the main configuration file for all of our Storybook tests.
4+
* This file must be a JSX/JS file, but we can at least add some type safety via
5+
* the ts-check directive.
6+
* @see {@link https://storybook.js.org/docs/configure#configure-story-rendering}
7+
*
8+
* @typedef {import("react").ReactElement} ReactElement
9+
* @typedef {import("react").PropsWithChildren} PropsWithChildren
10+
* @typedef {import("react").FC<PropsWithChildren>} FC
11+
*
12+
* @typedef {import("@storybook/react").StoryContext} StoryContext
13+
* @typedef {import("@storybook/react").Preview} Preview
14+
*
15+
* @typedef {(Story: FC, Context: StoryContext) => React.JSX.Element} Decorator A
16+
* Storybook decorator function used to inject baseline data dependencies into
17+
* our React components during testing.
18+
*/
119
import "../src/index.css";
220
import { ThemeProvider as EmotionThemeProvider } from "@emotion/react";
321
import CssBaseline from "@mui/material/CssBaseline";

0 commit comments

Comments
 (0)