-
-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathparams.ts
34 lines (28 loc) · 824 Bytes
/
params.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
export interface BaseParams {
disabled?: boolean;
hidden?: boolean;
index?: number;
}
export type ArrayStyleListOptions<T> = {text: string; value: T}[];
export type ObjectStyleListOptions<T> = {[text: string]: T};
export type ListParamsOptions<T> =
| ArrayStyleListOptions<T>
| ObjectStyleListOptions<T>;
export interface PointDimensionParams {
max?: number;
min?: number;
step?: number;
}
export type PickerLayout = 'inline' | 'popup';
export interface BaseInputParams extends BaseParams, Record<string, unknown> {
label?: string;
presetKey?: string;
view?: string;
}
export interface BaseMonitorParams extends BaseParams, Record<string, unknown> {
bufferSize?: number;
interval?: number;
label?: string;
view?: string;
}
export interface BaseBladeParams extends BaseParams, Record<string, unknown> {}