Skip to content

Commit

Permalink
fix: add type annotation on MarkdownTextPrimitive (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 30, 2024
1 parent b82dd31 commit a56b5fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/react-markdown/src/primitives/MarkdownText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import {
ElementRef,
ElementType,
forwardRef,
ForwardRefExoticComponent,
RefAttributes,
type ComponentPropsWithoutRef,
type ComponentType,
} from "react";
Expand Down Expand Up @@ -45,7 +47,9 @@ export type MarkdownTextPrimitiveProps = Omit<
};
smooth?: boolean;
};
export const MarkdownTextPrimitive = forwardRef<

export const MarkdownTextPrimitive: ForwardRefExoticComponent<MarkdownTextPrimitiveProps> &
RefAttributes<MarkdownTextPrimitiveElement> = forwardRef<
MarkdownTextPrimitiveElement,
MarkdownTextPrimitiveProps
>(
Expand Down

0 comments on commit a56b5fe

Please sign in to comment.