Skip to content

Commit

Permalink
Fix types to interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jun 26, 2024
1 parent d841bb4 commit b13ced2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/story.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-empty-interface */
import type { RemoveIndexSignature, Simplify, UnionToIntersection } from 'type-fest';
import type { SBScalarType, SBType } from './SBType';

Expand Down Expand Up @@ -273,16 +274,12 @@ export interface StoryContext<TRenderer extends Renderer = Renderer, TArgs = Arg
}

/** @deprecated Use {@link StoryContext} instead. */
export type StoryContextForLoaders<
TRenderer extends Renderer = Renderer,
TArgs = Args
> = StoryContext<TRenderer, TArgs>;
export interface StoryContextForLoaders<TRenderer extends Renderer = Renderer, TArgs = Args>
extends StoryContext<TRenderer, TArgs> {}

/** @deprecated Use {@link StoryContext} instead. */
export type PlayFunctionContext<TRenderer extends Renderer = Renderer, TArgs = Args> = StoryContext<
TRenderer,
TArgs
>;
export interface PlayFunctionContext<TRenderer extends Renderer = Renderer, TArgs = Args>
extends StoryContext<TRenderer, TArgs> {}

export type StepLabel = string;

Expand Down

0 comments on commit b13ced2

Please sign in to comment.