vant-weapp/types/class-names.d.ts
2018-09-21 14:52:47 +08:00

17 lines
278 B
TypeScript

type ClassValue =
| string
| number
| ClassDictionary
| ClassArray
| undefined
| null
| boolean;
interface ClassDictionary {
[id: string]: any;
}
interface ClassArray extends Array<ClassValue> {}
export type classNames = (...classes: ClassValue[]) => string;