storybook-chrome-screenshot
Version:
A Storybook addon, Save the screenshot image of your stories! via puppeteer.
17 lines (16 loc) • 657 B
TypeScript
import { StoredStory, StoryWithOptions } from '../../models/story';
import { ClientMetadata } from '../app/Browser';
export interface Adapter {
getMetadata(): Promise<ClientMetadata>;
readyComponentScreenshot(): void;
getScreenshotStories(): StoredStory[];
setScreenshotStories(stories: StoryWithOptions[]): void;
failureScreenshot(err: string): void;
}
export declare class AppAdapter implements Adapter {
getMetadata(): Promise<ClientMetadata>;
readyComponentScreenshot(): void;
getScreenshotStories(): StoredStory[];
setScreenshotStories(stories: StoryWithOptions[]): void;
failureScreenshot(err: string): void;
}