@css-panda/types
Advanced tools
Comparing version 0.0.0-dev-20220913042815 to 0.0.0-dev-20220913053359
{ | ||
"name": "@css-panda/types", | ||
"version": "0.0.0-dev-20220913042815", | ||
"version": "0.0.0-dev-20220913053359", | ||
"description": "The types for css panda", | ||
@@ -5,0 +5,0 @@ "main": "src/index.d.ts", |
@@ -15,3 +15,5 @@ import type { Properties } from './panda-csstype' | ||
export type PropertyConfig<T extends Record<string, any>> = { | ||
export type PropertyValues = string | string[] | Record<string, string> | ValuesFn | ||
export type PropertyConfig = { | ||
/** | ||
@@ -28,3 +30,3 @@ * The classname this property will generate. | ||
*/ | ||
values?: keyof T | string[] | Record<string, string> | ValuesFn | ||
values?: string | string[] | { type: string } | Record<string, string> | ValuesFn | ||
/** | ||
@@ -35,6 +37,2 @@ * The css property this utility maps to. | ||
/** | ||
* Custom TS type for this property. | ||
*/ | ||
valueType?: string | ||
/** | ||
* [Experimental] The conditions this property can be used in. | ||
@@ -46,3 +44,3 @@ * Useful for initial class generation. | ||
export type UtilityConfig<T extends Record<string, any> = Record<string, any>> = { | ||
export type UtilityConfig = { | ||
/** | ||
@@ -52,3 +50,3 @@ * The css properties matched by this utility. | ||
properties: { | ||
[property in keyof Properties | (string & Record<never, never>)]?: string | PropertyConfig<T> | ||
[property in keyof Properties | (string & {})]?: string | PropertyConfig | ||
} | ||
@@ -55,0 +53,0 @@ |
894412
20531