UNPKG

@storybook/addon-ondevice-notes

Version:

Write notes for your react-native Storybook stories.

20 lines (19 loc) 609 B
import { type API } from 'storybook/internal/manager-api'; import type { Args, StoryContext } from 'storybook/internal/csf'; import type { ReactRenderer } from '@storybook/react'; import type { Channel } from 'storybook/internal/channels'; export declare const PARAM_KEY = "notes"; export interface Selection { storyId: string; viewMode: 'story'; } export type StoryFromId = StoryContext<ReactRenderer, Args>; type ApiStore = { fromId: (id: any) => StoryFromId; getSelection: () => Selection; _channel: Channel; }; export type RNAddonApi = API & { store: () => ApiStore; }; export {};