Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom committed Dec 15, 2024
1 parent 4c54273 commit b33cc7f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion packages/react-markdown/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
"@radix-ui/react-use-callback-ref": "^1.1.0",
"@types/hast": "^3.0.4",
"classnames": "^2.5.1",
"hast": "^1.0.0",
"lucide-react": "^0.468.0",
"react-markdown": "^9.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-markdown/src/overrides/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SyntaxHighlighterProps,
} from "./types";
import { DefaultCodeBlockContent } from "./defaultComponents";
import type { Element } from "hast";
import { Element } from "hast";

export type CodeBlockProps = {
language: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ComponentType, ReactNode } from "react";
import type { Element } from "hast";
import { Element } from "hast";
import { PreComponent, CodeComponent, CodeHeaderProps } from "./types";

export const DefaultPre: PreComponent = ({ node, ...rest }) => (
Expand Down
10 changes: 7 additions & 3 deletions packages/react-markdown/src/overrides/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import type { Element } from "hast";
import { Element } from "hast";
import { ComponentPropsWithoutRef, ComponentType } from "react";

export type PreComponent = ComponentType<ComponentPropsWithoutRef<'pre'> & { node: Element }>;
export type CodeComponent = ComponentType<ComponentPropsWithoutRef<'code'> & { node: Element }>;
export type PreComponent = ComponentType<
ComponentPropsWithoutRef<"pre"> & { node: Element }
>;
export type CodeComponent = ComponentType<
ComponentPropsWithoutRef<"code"> & { node: Element }
>;

export type CodeHeaderProps = {
language: string | undefined;
Expand Down
9 changes: 0 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b33cc7f

Please sign in to comment.