index.d.ts 775 B

1234567891011121314151617181920212223
  1. // LICENSE is MIT
  2. //
  3. // Copyright (c) 2018
  4. // Dave Keen <http://www.keendevelopment.ch>
  5. // Adi Dahiya <https://github.com/adidahiya>
  6. // Jason Killian <https://github.com/JKillian>
  7. // Sean Kelley <https://github.com/seansfkelley>
  8. // Michal Adamczyk <https://github.com/mradamczyk>
  9. // Marvin Hagemeister <https://github.com/marvinhagemeister>
  10. declare namespace classNames {
  11. type Value = string | number | boolean | undefined | null;
  12. type Mapping = Record<string, unknown>;
  13. interface ArgumentArray extends Array<Argument> {}
  14. type Argument = Value | Mapping | ArgumentArray;
  15. }
  16. /**
  17. * A simple JavaScript utility for conditionally joining classNames together.
  18. */
  19. declare function classNames(...args: classNames.ArgumentArray): string;
  20. export = classNames;