UNPKG

creevey

Version:

Cross-browser screenshot testing tool for Storybook with fancy UI Runner

15 lines (14 loc) 557 B
import React from 'react'; import { CreeveySuite } from '../../types.js'; export interface CreeveyContextType { isReport: boolean; isRunning: boolean; onStop: () => void; onImageApprove?: () => void; onApproveAll: () => void; onStart: (rootSuite: CreeveySuite) => void; onSuiteOpen: (path: string[], opened: boolean) => void; onSuiteToggle: (path: string[], checked: boolean) => void; } export declare const CreeveyContext: React.Context<CreeveyContextType>; export declare const useCreeveyContext: () => CreeveyContextType;