mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
19 lines
483 B
TypeScript
19 lines
483 B
TypeScript
// Type definitions for classnames
|
|
// Project: https://github.com/JedWatson/classnames
|
|
// Definitions by: Dave Keen <http://www.keendevelopment.ch>, Adi Dahiya <https://github.com/adidahiya>
|
|
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
|
|
|
interface ClassDictionary {
|
|
[id: string]: boolean;
|
|
}
|
|
|
|
interface ClassNamesFn {
|
|
(...classes: (string | ClassDictionary)[]): string;
|
|
}
|
|
|
|
declare var classNames: ClassNamesFn;
|
|
|
|
declare module "classnames" {
|
|
export = classNames
|
|
}
|