DB-GPT/web/types/common.ts
云锋 94b51284e0
feat(datasource): Database connection Renewal (#2359)
Co-authored-by: aries_ckt <916701291@qq.com>
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
Co-authored-by: ‘yanzhiyonggit config --global user.email git config --global user.name ‘yanzhiyong <zhiyong.yan@clife.cn>
2025-02-22 18:44:21 +08:00

24 lines
496 B
TypeScript

interface ExtMetadata {
tags: string;
order: number;
[key: string]: string | number | boolean;
}
type NestedField = {
[key: string]: ConfigurableParams;
};
export type ConfigurableParams = {
param_class: string;
param_name: string;
param_type: string;
default_value: string | boolean | number;
description: string;
required: boolean;
valid_values: null | string[];
ext_metadata: ExtMetadata;
is_array: boolean;
label: string;
nested_fields: NestedField | null;
};