feat: extract parameter support bool

This commit is contained in:
Joel 2025-07-08 16:41:58 +08:00
parent 9ac629bcf5
commit fcf0ae4c85
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ type Props = {
onCancel?: () => void
}
const TYPES = [ParamType.string, ParamType.number, ParamType.arrayString, ParamType.arrayNumber, ParamType.arrayObject]
const TYPES = [ParamType.string, ParamType.number, ParamType.bool, ParamType.arrayString, ParamType.arrayNumber, ParamType.arrayObject, ParamType.arrayBool]
const AddExtractParameter: FC<Props> = ({
type,

View File

@ -3,11 +3,12 @@ import type { CommonNodeType, Memory, ModelConfig, ValueSelector, VisionSetting
export enum ParamType {
string = 'string',
number = 'number',
bool = 'bool',
bool = 'boolean',
select = 'select',
arrayString = 'array[string]',
arrayNumber = 'array[number]',
arrayObject = 'array[object]',
arrayBool = 'array[boolean]',
}
export type Param = {