Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] tw.variants type is not correctly inferred #115

Merged
merged 4 commits into from
Aug 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
♻️ refactor: remove unnecessary generic constraint at createRotary
…function
danpacho committed Aug 12, 2024
commit 6ceacb54bbb4c0c2a5f00a99b7828e6b9504904b
6 changes: 1 addition & 5 deletions packages/tailwindest/src/core/tools/create.rotary.ts
Original file line number Diff line number Diff line change
@@ -7,11 +7,7 @@ import type { TailwindestStyler } from "./tool.interface"

const createRotary =
<StyleType>() =>
<
VariantsStylesType extends {
[key in keyof VariantsStylesType]: StyleType
},
>({
<VariantsStylesType>({
base,
...styles
}: { [key in keyof VariantsStylesType]: StyleType } & {