diff --git a/src/index.d.ts b/src/index.d.ts index 61b7be1..71b20e1 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -152,24 +152,24 @@ export type TVProps< ? ClassProp : { [K in keyof V]?: isTrueOrArray extends true - ? StringToBoolean | TVScreenPropsValue - : StringToBoolean; + ? StringToBoolean | TVScreenPropsValue | undefined + : StringToBoolean | undefined; } & ClassProp : V extends undefined ? { [K in keyof EV]?: isTrueOrArray extends true - ? StringToBoolean | TVScreenPropsValue - : StringToBoolean; + ? StringToBoolean | TVScreenPropsValue | undefined + : StringToBoolean | undefined; } & ClassProp : { [K in keyof V | keyof EV]?: isTrueOrArray extends true ? - | (K extends keyof V ? StringToBoolean : never) - | (K extends keyof EV ? StringToBoolean : never) + | (K extends keyof V ? StringToBoolean | undefined : never) + | (K extends keyof EV ? StringToBoolean | undefined : never) | TVScreenPropsValue : - | (K extends keyof V ? StringToBoolean : never) - | (K extends keyof EV ? StringToBoolean : never); + | (K extends keyof V ? StringToBoolean | undefined : never) + | (K extends keyof EV ? StringToBoolean | undefined : never); } & ClassProp; export type TVVariantKeys, S extends TVSlots> = V extends Object diff --git a/tsconfig.json b/tsconfig.json index c2fb223..05313af 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "include": ["**/*.ts"], "exclude": ["node_modules", "dist"], "compilerOptions": { + "types": ["jest"], "target": "esnext", "module": "esnext", "isolatedModules": true,