Skip to content

Commit

Permalink
chore: fix Msw type
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext committed Dec 17, 2024
1 parent b114694 commit 99110d7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/nextjs/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import "@fontsource/lexend/800.css";
import "@fontsource/lexend/900.css";
import { OakThemeProvider, oakDefaultTheme } from "@oaknational/oak-components";
import type { Preview, Decorator } from "@storybook/react";
import { initialize as initializeMsw, mswLoader } from "msw-storybook-addon";
import {
initialize as initializeMsw,
mswLoader,
MswParameters,
} from "msw-storybook-addon";

import { TooltipProvider } from "../src/components/AppComponents/Chat/ui/tooltip";
import { DialogProvider } from "../src/components/AppComponents/DialogContext";
Expand All @@ -19,6 +23,12 @@ import { chromaticParams } from "./chromatic";
import { RadixThemeDecorator } from "./decorators/RadixThemeDecorator";
import "./preview.css";

declare module "@storybook/csf" {
interface Parameters {
msw?: MswParameters["msw"];
}
}

initializeMsw();

const preview: Preview = {
Expand Down

0 comments on commit 99110d7

Please sign in to comment.