UNPKG

tailwind-merge

Version:

Merge Tailwind CSS classes without style conflicts

20 lines (19 loc) • 670 B
import { ClassGroupId, Config, ClassValidator } from './types'; export interface ClassPartObject { nextPart: Record<string, ClassPartObject>; validators: ClassValidatorObject[]; classGroupId?: ClassGroupId; } interface ClassValidatorObject { classGroupId: ClassGroupId; validator: ClassValidator; } export declare function createClassUtils(config: Config): { getClassGroupId: (className: string) => string | undefined; getConflictingClassGroupIds: (classGroupId: ClassGroupId) => readonly string[]; }; /** * Exported for testing only */ export declare function createClassMap(config: Config): ClassPartObject; export {};