mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-02 05:03:44 +08:00
Use proper types
This commit is contained in:
parent
697c8ea064
commit
e05b07d003
@ -1,6 +1,12 @@
|
||||
import { addons } from '@storybook/addons';
|
||||
import { FORCE_REMOUNT, STORY_RENDER_PHASE_CHANGED } from '@storybook/core-events';
|
||||
import type { AnyFramework, ArgsEnhancer } from '@storybook/csf';
|
||||
import type {
|
||||
AnyFramework,
|
||||
ArgsEnhancer,
|
||||
PlayFunction,
|
||||
PlayFunctionContext,
|
||||
StepLabel,
|
||||
} from '@storybook/csf';
|
||||
import { instrument } from '@storybook/instrumenter';
|
||||
import { ModuleMocker } from 'jest-mock';
|
||||
|
||||
@ -49,4 +55,6 @@ const addActionsFromArgTypes: ArgsEnhancer<AnyFramework> = ({ id, initialArgs })
|
||||
|
||||
export const argsEnhancers = [addActionsFromArgTypes];
|
||||
|
||||
export const runStep = [(label: string, callback: Function, context: Object) => callback(context)];
|
||||
export const runStep = [
|
||||
(label: StepLabel, play: PlayFunction, context: PlayFunctionContext) => play(context),
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user