@storybook/addon-ondevice-notes
Version:
Write notes for your react-native Storybook stories.
22 lines (21 loc) • 628 B
TypeScript
import { API } from "storybook/manager-api";
import { Args, StoryContext } from "storybook/internal/csf";
import { ReactRenderer } from "@storybook/react";
import { Channel } from "storybook/internal/channels";
//#region src/register.d.ts
declare const PARAM_KEY = "notes";
interface Selection {
storyId: string;
viewMode: 'story';
}
type StoryFromId = StoryContext<ReactRenderer, Args>;
type ApiStore = {
fromId: (id: any) => StoryFromId;
getSelection: () => Selection;
_channel: Channel;
};
type RNAddonApi = API & {
store: () => ApiStore;
};
//#endregion
export { PARAM_KEY, RNAddonApi, Selection, StoryFromId };