Files
SnowLuma/.pnpm-store/v11/files/0d/79f0d731e5ce51900a6fa7aba6ed6d128a78e0f348143b9363242ab8e1c293a94f6741baed6d57aa4065d36de76f16451a320ea218f5f887531000878b5864
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

24 lines
516 B
Plaintext

/**
* creates a style on demand
*/
declare type StyleSingletonHook = (
/**
* styles to create
*/
styles: string,
/**
* indication that styles should be reapplied on change
*/
isDynamic?: boolean) => void;
/**
* creates a hook to control style singleton
* @see {@link styleSingleton} for a safer component version
* @example
* ```tsx
* const useStyle = styleHookSingleton();
* ///
* useStyle('body { overflow: hidden}');
*/
export declare const styleHookSingleton: () => StyleSingletonHook;
export {};