feat: lint code

This commit is contained in:
Joel
2023-06-10 14:04:40 +08:00
parent 2e46f795a4
commit cfd0c9532f
36 changed files with 226 additions and 210 deletions

View File

@ -1,31 +1,31 @@
import { Locale } from '@/i18n'
import type { Locale } from '@/i18n'
export type PromptVariable = {
key: string,
name: string,
type: "string" | "number" | "select",
default?: string | number,
key: string
name: string
type: 'string' | 'number' | 'select'
default?: string | number
options?: string[]
max_length?: number
required: boolean
}
export type PromptConfig = {
prompt_template: string,
prompt_variables: PromptVariable[],
prompt_template: string
prompt_variables: PromptVariable[]
}
export type TextTypeFormItem = {
label: string,
variable: string,
label: string
variable: string
required: boolean
max_length: number
}
export type SelectTypeFormItem = {
label: string,
variable: string,
required: boolean,
label: string
variable: string
required: boolean
options: string[]
}
/**
@ -79,14 +79,13 @@ export type IChatItem = {
isOpeningStatement?: boolean
}
export type ResponseHolder = {}
export type ConversationItem = {
id: string
name: string
inputs: Record<string, any> | null
introduction: string,
introduction: string
}
export type AppInfo = {
@ -95,4 +94,4 @@ export type AppInfo = {
default_language: Locale
copyright?: string
privacy_policy?: string
}
}