Skip to content

Commit 80e50d1

Browse files
authored
fix: export interface declaration for ReactMeta
This interface has to be exported to prevent `has or is using name '...' from external module "..." but cannot be named` errors when attempting to use `definePreview(...).meta(...)`.
1 parent 5d0ff07 commit 80e50d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/renderers/react/src/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ type DecoratorsArgs<TRenderer extends Renderer, Decorators> = UnionToIntersectio
8484
Decorators extends DecoratorFunction<TRenderer, infer TArgs> ? TArgs : unknown
8585
>;
8686

87-
interface ReactMeta<T extends ReactTypes, MetaInput extends ComponentAnnotations<T>>
87+
export interface ReactMeta<T extends ReactTypes, MetaInput extends ComponentAnnotations<T>>
8888
/** @ts-expect-error hard */
8989
extends Meta<T, MetaInput> {
9090
// Required args don't need to be provided when the user uses an empty render

0 commit comments

Comments
 (0)