diff --git a/src/index.d.ts b/src/index.d.ts index 1cd9ec4..62f918d 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -267,7 +267,8 @@ export declare const tv: TV; export declare const defaultConfig: TVConfig; -export type VariantProps any> = Omit< - OmitUndefined[0]>, - "class" | "className" ->; +export type VariantProps = T extends {variants: infer V} + ? V extends TVVariantsDefault + ? {[K in TVVariantKeys[number]]?: keyof V[K]} + : never + : never;