mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-08 17:32:27 +08:00
feat: lint code
This commit is contained in:
29
types/app.ts
29
types/app.ts
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user