Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jun 21, 2024
1 parent 8b5aaf1 commit 0f3cc7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Arg
canvasElement: TRenderer['canvasElement'];
canvas: Canvas;
step: StepFunction<TRenderer, TArgs>;
mount: (...args: FunctionParameters<TRenderer['mount']>) => Promise<this['canvas']>;
mount: TRenderer['mount'];
}

type FunctionParameters<T extends (...args: any) => any> = T extends (...args: infer P) => any
Expand Down

0 comments on commit 0f3cc7f

Please sign in to comment.