Skip to content

Commit

Permalink
add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiion committed Jun 10, 2024
1 parent c75c1f9 commit eb4fc19
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { ControlProps, showAsRequired } from "@jsonforms/core";
import {
ControlProps,
OwnPropsOfControl,
showAsRequired,
} from "@jsonforms/core";
import { withJsonFormsControlProps } from "@jsonforms/react";
import { Edit, EditOff } from "@mui/icons-material";
import {
Expand Down Expand Up @@ -120,6 +124,8 @@ const MarkdownTextFieldRendererComponent = (props: ControlProps) => {
);
};

export const MarkdownTextFieldRenderer = withJsonFormsControlProps(
export const MarkdownTextFieldRenderer:
| React.ComponentClass<OwnPropsOfControl>
| React.FunctionComponent<OwnPropsOfControl> = withJsonFormsControlProps(
MarkdownTextFieldRendererComponent,
);

0 comments on commit eb4fc19

Please sign in to comment.