Skip to content

Commit

Permalink
Update Report interface to use 'type' instead of 'id' and rename afte…
Browse files Browse the repository at this point in the history
…rEach to experimental_afterEach
  • Loading branch information
valentinpalkovic committed Nov 29, 2024
1 parent 100825f commit be293af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ interface ControlBase {
}

interface Report {
id: string;
type: string;
version?: number;
result: unknown;
status: 'failed' | 'passed' | 'warning';
Expand Down Expand Up @@ -407,7 +407,7 @@ export interface BaseAnnotations<TRenderer extends Renderer = Renderer, TArgs =
* `afterEach` can be added to preview, the default export and to a specific story.
* They are run (and awaited) reverse order: preview, default export, story
*/
afterEach?: AfterEach<TRenderer, TArgs>[] | AfterEach<TRenderer, TArgs>;
experimental_afterEach?: AfterEach<TRenderer, TArgs>[] | AfterEach<TRenderer, TArgs>;

/**
* Define a custom render function for the story(ies). If not passed, a default render function by the renderer will be used.
Expand Down

0 comments on commit be293af

Please sign in to comment.