From d42aef9e5e9e4a8569606ddacf19d95b6b9c1a16 Mon Sep 17 00:00:00 2001 From: Jan W Date: Wed, 23 Oct 2024 13:26:29 +0200 Subject: [PATCH] refactor: DP => A2 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 4a08579..c72aebd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -119,7 +119,7 @@ const styled =

(more: ComponentStyle) => styled(StyledComponent, { name })(more), - attrs: (attrs: Attrs) => styled(StyledComponent, { attrs })() as StyledComponent, S>, + attrs: (attrs: Attrs) => styled(StyledComponent, { attrs })() as StyledComponent, S>, withComponent: (comp: React.ComponentType) => styled(StyledComponent, { comp })(componentStyle) as StyledComponent

, withChild: (child: React.ComponentType, childProps: any) =>