Skip to content

Commit

Permalink
🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Dec 28, 2023
1 parent 217cc8a commit ec4a0e1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion apps/www/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
Expand Down
4 changes: 1 addition & 3 deletions packages/plate-utils/src/PlateElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ const PlateElement = React.forwardRef<HTMLDivElement, PlateElementProps>(

return <Box {...rootProps} ref={rootRef} />;
}
) as (<V extends Value = Value, N extends TElement = EElement<V>>(
props: PlateElementProps<V, N> & React.RefAttributes<HTMLDivElement>
) => React.ReactElement) & { displayName?: string };
);
PlateElement.displayName = 'PlateElement';

export { PlateElement };
8 changes: 1 addition & 7 deletions packages/plate-utils/src/PlateLeaf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@ const PlateLeaf = React.forwardRef<HTMLSpanElement, PlateLeafProps>(

return <Text {...rootProps} ref={rootRef} />;
}
) as (<V extends Value = Value, N extends TText = EText<V>>({
className,
...props
}: PlateLeafProps<V, N> &
React.RefAttributes<HTMLSpanElement>) => React.ReactElement) & {
displayName?: string;
};
);
PlateLeaf.displayName = 'PlateLeaf';

export { PlateLeaf };

0 comments on commit ec4a0e1

Please sign in to comment.