lint, tsc

This commit is contained in:
Tom Moor
2021-12-11 12:48:13 -08:00
parent ca0a900c21
commit 19e85c63c2
48 changed files with 118 additions and 339 deletions

View File

@@ -13,7 +13,7 @@ const StyledIframe = styled(Iframe)`
border-radius: ${(props) => (props.$withBar ? "3px 3px 0 0" : "3px")};
display: block;
`;
type Props = {
type Props = React.HTMLAttributes<HTMLIFrameElement> & {
src?: string;
border?: boolean;
title?: string;
@@ -22,6 +22,7 @@ type Props = {
isSelected?: boolean;
width?: string;
height?: string;
allow?: string;
};
type PropsWithRef = Props & {
@@ -147,7 +148,7 @@ const Bar = styled.div`
user-select: none;
`;
export default React.forwardRef((props, ref) => (
export default React.forwardRef<Frame, Props>((props, ref) => (
// @ts-expect-error ts-migrate(2769) FIXME: No overload matches this call.
<Frame {...props} forwardedRef={ref} />
));