Installation
npm install --save @types/storybook-react-router
Summary
This package contains type definitions for storybook-react-router (https://github.com/gvaldambrini/storybook-router).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/storybook-react-router.
index.d.ts
import { DecoratorFunction, StoryApi } from "@storybook/addons";
import { StoryFnReactReturnType } from "@storybook/react/dist/ts3.9/client/preview/types";
import { ComponentType } from "react";
import { MemoryRouterProps } from "react-router";
export const StoryRouter: ComponentType<{
story: StoryApi;
links: object;
routerProps: MemoryRouterProps;
}>;
declare function storyRouterDecorator(
links?: object,
routerProps?: MemoryRouterProps,
): DecoratorFunction<StoryFnReactReturnType>;
export default storyRouterDecorator;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @storybook/addons, @storybook/react, @types/react, @types/react-router
Credits
These definitions were written by Alex Lomia.