Skip to content

Commit

Permalink
Add MountReturn interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jun 11, 2024
1 parent 199fdbc commit 75a24e6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ export type BeforeEach<TRenderer extends Renderer = Renderer, TArgs = Args> = (
context: StoryContext<TRenderer, TArgs>
) => Awaitable<CleanupCallback | void>;

// To be augmented by addons
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface MountReturn {}

export interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Args>
extends StoryContextForEnhancers<TRenderer, TArgs>,
Required<StoryContextUpdate<TArgs>> {
Expand All @@ -269,7 +273,7 @@ export interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Arg
abortSignal: AbortSignal;
canvasElement: TRenderer['canvasElement'];
step: StepFunction<TRenderer, TArgs>;
mount(): Promise<void>;
mount(): Promise<MountReturn>;
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down

0 comments on commit 75a24e6

Please sign in to comment.