-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtypes.d.ts
49 lines (45 loc) · 1.57 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// ─────────────────────────────────────────────────────────────────────────────
// TYPE DEFINITIONS
export type VueComponent = string | any
export type VueComponentProps = { [key: string]: any }
export type CompareFn = (a: any, b: any) => number
export type SortingMode = "asc" | "desc" | "none"
export type ColumnType = "numeric" | "string" | "array" | "other"
export type Column = {
compareFunction: CompareFn
component: VueComponent
componentProps: VueComponentProps
collapsed: boolean
collapsible: boolean
displayIndex: number
editable: boolean
key: string
id: number
searchable: boolean
searchFunction: (data: Cell, search: string, key: string) => boolean
sortable: boolean
sortingIndex: number
sortingMode: SortingMode
title: string
type: string
}
export type LanguageName = string
export type LanguageDictKey =
| "downloadButtonText"
| "downloadText"
| "emptyTableText"
| "infoFilteredText"
| "infoText"
| "infoAllText"
| "nextButtonText"
| "paginationSearchButtonText"
| "paginationSearchText"
| "perPageText"
| "perPageAllText"
| "previousButtonText"
| "searchText"
export type LanguageDictVal = string
export type LanguageDict = Record<LanguageDictKey, LanguageDictVal>
export type Translation = Record<LanguageName, LanguageDict>
export type Cell = { [key: string]: [String, Number, Array, Object] }
export type Data = Cell[]