Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions code/renderers/react/src/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function __definePreview<Addons extends PreviewAddon<never>[]>(
return preview;
}

// @ts-expect-error We cannot implement the meta faithfully here, but that is okay.
/** @ts-expect-error We cannot implement the meta faithfully here, but that is okay. */
export interface ReactPreview<T extends AddonTypes> extends Preview<ReactTypes & T> {
meta<
TArgs extends Args,
Expand Down Expand Up @@ -81,7 +81,7 @@ type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersectio
>;

interface ReactMeta<T extends ReactTypes, MetaInput extends ComponentAnnotations<T>>
// @ts-expect-error hard
/** @ts-expect-error hard */
extends Meta<T, MetaInput> {
// Required args don't need to be provided when the user uses an empty render
story<
Expand All @@ -105,7 +105,7 @@ interface ReactMeta<T extends ReactTypes, MetaInput extends ComponentAnnotations
>,
>(
story?: TInput
// @ts-expect-error hard
/** @ts-expect-error hard */
): ReactStory<T, TInput>;
}

Expand Down
Loading