classnames.d.ts 385 B

12345678910111213
  1. declare module 'classnames/bind' {
  2. import 'classnames/bind'
  3. type ClassValue<T extends string> = T | T[] | {[k in T]?: T | undefined | null | boolean} | undefined | null | boolean;
  4. export function bind<T extends string>(styles: Record<T, string>)
  5. : (...classes: ClassValue<T>[]) => string;
  6. const cn: {bind: typeof bind};
  7. export default cn;
  8. }