Home > @css-hooks/core > CreateHooksFn
CreateHooksFn type
Represents the function used to define hooks and related configuration.
Signature:
export type CreateHooksFn<CSSProperties> = <
HooksConfig extends
| Record<string, Condition<HookImpl>>
| ((
helpers: ConditionHelpers<HookImpl>,
) => Record<string, Condition<HookImpl>>),
>(
config: Config<HooksConfig>,
) => Hooks<GetHookNames<HooksConfig>, CSSProperties>;
References: Condition, HookImpl, ConditionHelpers, Config, Hooks, GetHookNames