UNPKG

578 BTypeScriptView Raw
1export as namespace Classcat
2
3export interface ClassObject {
4 [key: string]: boolean | any
5}
6
7export interface ClassArray extends Array<Class> {}
8
9export type Class = string | number | ClassObject | ClassArray
10
11/**
12 * Classcat is a unary function (accepts a single argument) expecting an array of elements or an object of keys and returns a string that is the result of joining all elements of the array or object keys.
13 *
14 * If the value associated with a given key is falsey, the key will be ignored.
15 *
16 * @param classes
17 */
18export default function(classes: Class): string
19
\No newline at end of file