Skip to content

Commit

Permalink
Add context to context
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jun 21, 2024
1 parent 0f3cc7f commit 9f56778
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ export interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Arg
canvas: Canvas;
step: StepFunction<TRenderer, TArgs>;
mount: TRenderer['mount'];
context: this;
}

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

0 comments on commit 9f56778

Please sign in to comment.