Skip to content

Commit

Permalink
Fix type of exported styled
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyderion committed Dec 9, 2024
1 parent 8b1b50d commit 1e75acf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/next-yak/runtime/mocks/styled.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { styled as StyledFactory } from "../styled.js";
export const styled = new Proxy(StyledFactory as any, {
get(target, TagName: keyof JSX.IntrinsicElements) {
return target(TagName);
},
});
import { styled as StyledFactory } from "../styled.js"
export const styled = new Proxy(
StyledFactory,
{
get(target, TagName: keyof JSX.IntrinsicElements) {
return target(TagName);
},
},
) as typeof StyledFactory

0 comments on commit 1e75acf

Please sign in to comment.