mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 21:49:23 +08:00
50 lines
806 B
TypeScript
50 lines
806 B
TypeScript
export interface AnyObject {
|
|
[key: string]: unknown;
|
|
}
|
|
|
|
export interface Options {
|
|
value: unknown;
|
|
label: string;
|
|
}
|
|
|
|
export interface NodeOptions extends Options {
|
|
children?: NodeOptions[];
|
|
}
|
|
|
|
export interface GetParams {
|
|
body: null;
|
|
type: string;
|
|
url: string;
|
|
}
|
|
|
|
export interface PostData {
|
|
body: string;
|
|
type: string;
|
|
url: string;
|
|
}
|
|
|
|
export interface Pagination {
|
|
current: number;
|
|
pageSize: number;
|
|
total?: number;
|
|
}
|
|
|
|
export type TimeRanger = [string, string];
|
|
|
|
export interface GeneralChart {
|
|
xAxis: string[];
|
|
data: Array<{ name: string; value: number[] }>;
|
|
}
|
|
|
|
declare type Recordable<T = any> = Record<string, T>;
|
|
|
|
export type LocaleType = 'zh-CN' | 'en-US';
|
|
|
|
declare global {
|
|
namespace JSX {
|
|
interface IntrinsicElements {
|
|
[elemName: string]: any;
|
|
}
|
|
}
|
|
}
|