From 97b956b3c01351a4bb9c5f51b00150d5ebecbab3 Mon Sep 17 00:00:00 2001 From: William Wong Date: Sun, 10 Sep 2023 01:55:13 -0700 Subject: [PATCH] Fix typing for strictest (#23) --- .../linkDecorator/linkDecoratorService/Link.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/pages/src/app/linkDecorator/linkDecoratorService/Link.tsx b/packages/pages/src/app/linkDecorator/linkDecoratorService/Link.tsx index 4c97720..1aa89ec 100644 --- a/packages/pages/src/app/linkDecorator/linkDecoratorService/Link.tsx +++ b/packages/pages/src/app/linkDecorator/linkDecoratorService/Link.tsx @@ -4,12 +4,14 @@ import { Proxy } from './private/chainOfResponsibility'; import type { Props } from './private/types'; -const Link = ({ children, className, href }: Props) => ( - // TODO: Fix this typing. - // - - {children} - -); +const Link = (props: Props) => { + const { children, ...passingProps } = props; + + return ( + + {children} + + ); +}; export default Link;