Drop unused stepFunction property and its type definition

This commit is contained in:
Gert Hengeveld 2022-08-09 15:02:11 +02:00
parent 51d74a7800
commit f46a08ca76
2 changed files with 0 additions and 11 deletions

View File

@ -9,7 +9,6 @@ import {
import {
Story,
RenderContext,
PlayContext,
StoryStore,
RenderToDOM,
TeardownRenderToDOM,
@ -72,8 +71,6 @@ export class StoryRender<TFramework extends AnyFramework> implements Render<TFra
private abortController?: AbortController;
private stepFunction?: PlayContext['step'];
private canvasElement?: HTMLElement;
private notYetRendered = true;

View File

@ -106,14 +106,6 @@ export type BoundStory<TFramework extends AnyFramework = AnyFramework> = Story<T
storyFn: PartialStoryFn<TFramework>;
};
export declare type PlayContext<TFramework extends AnyFramework = AnyFramework> =
StoryContext<TFramework> & {
step: (
name: string,
play: (context: PlayContext<TFramework>) => MaybePromise<void>
) => MaybePromise<void>;
};
export declare type RenderContext<TFramework extends AnyFramework = AnyFramework> =
StoryIdentifier & {
showMain: () => void;