UNPKG

arto

Version:

Arto is a flexible and type-safe class name management library for building scalable UIs with variants, states, and conditional styling.

15 lines 676 B
import { ClassName } from '../types'; /** * Shallow type guard checking if `config` is a valid top-level `ClassName<TContext>` form: * - A **string** * - An **array** (which may contain nested items) * - A **function** returning class names * * Deeper validation of array contents occurs in `normalizeClassName`. * * @template TContext - The context type for callback-based class names. * @param config - The candidate to test. * @returns True if `config` is a top-level `ClassName<TContext>`, otherwise false. */ export declare const isClassNameType: <TContext = unknown>(config: unknown) => config is ClassName<TContext>; //# sourceMappingURL=type-guards.d.ts.map