@types/storybook-react-router
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

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

Credits

These definitions were written by Alex Lomia.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/storybook-react-router

Weekly Downloads

14,924

Version

1.0.6

License

MIT

Unpacked Size

4.14 kB

Total Files

5

Last publish

Collaborators

  • types