@icestack/types
Advanced tools
Comparing version 0.4.11 to 0.5.0
@@ -27,7 +27,7 @@ import { Config as Config$1 } from 'tailwindcss/types/config'; | ||
}; | ||
type GetCssSchemaMethodOptions = CreatePresetOptions & { | ||
type GetCssSchemaMethodOptions<T extends Record<string, any> = Record<string, any>> = CreatePresetOptions & { | ||
selector: string; | ||
params: Record<string, any>; | ||
params: T; | ||
}; | ||
type GetCssSchemaMethod = (opts: GetCssSchemaMethodOptions) => CssSchema; | ||
type GetCssSchemaMethod<T extends Record<string, any> = Record<string, any>> = (opts: GetCssSchemaMethodOptions<T>) => CssSchema; | ||
@@ -64,3 +64,3 @@ interface PrefixerOptions { | ||
type ModeMergeOptions = string | ModeMergeValue | ((opts: Partial<GetCssSchemaMethodOptions>) => string | ModeMergeValue); | ||
type ComponentsValue = { | ||
type ComponentsValue<Params extends Record<string, any> = Record<string, any>> = { | ||
prefix: PrefixerOptions; | ||
@@ -88,7 +88,7 @@ varPrefix: VarPrefixerOptions; | ||
*/ | ||
params: Record<string, any>; | ||
params: Params; | ||
/** | ||
* @description senior | ||
*/ | ||
schema: GetCssSchemaMethod; | ||
schema: GetCssSchemaMethod<Params>; | ||
}; | ||
@@ -95,0 +95,0 @@ type ComponentsOptions = Record<string, Partial<ComponentsValue> | false>; |
{ | ||
"name": "@icestack/types", | ||
"description": "The types of @icestack/ui", | ||
"version": "0.4.11", | ||
"version": "0.5.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "types", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
19163