mirror of
https://github.com/langgenius/dify.git
synced 2026-06-08 09:27:39 +08:00
chore: knip fix (#34481)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -91,7 +91,7 @@ export const normalizeParameterType = (input: string | undefined | null): VarTyp
|
||||
/**
|
||||
* Gets display name for parameter types in UI components
|
||||
*/
|
||||
export const getParameterTypeDisplayName = (type: VarType): string => {
|
||||
const getParameterTypeDisplayName = (type: VarType): string => {
|
||||
return TYPE_DISPLAY_NAMES[type]
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ export const getParameterTypeDisplayName = (type: VarType): string => {
|
||||
* Gets available parameter types based on content type
|
||||
* Provides context-aware type filtering for different webhook content types
|
||||
*/
|
||||
export const getAvailableParameterTypes = (contentType?: string): VarType[] => {
|
||||
const getAvailableParameterTypes = (contentType?: string): VarType[] => {
|
||||
if (!contentType)
|
||||
return [VarType.string, VarType.number, VarType.boolean]
|
||||
|
||||
|
||||
@ -2,7 +2,7 @@ import type { Variable } from '@/app/components/workflow/types'
|
||||
import { VarType } from '@/app/components/workflow/types'
|
||||
|
||||
export const WEBHOOK_RAW_VARIABLE_NAME = '_webhook_raw'
|
||||
export const WEBHOOK_RAW_VARIABLE_LABEL = 'raw'
|
||||
const WEBHOOK_RAW_VARIABLE_LABEL = 'raw'
|
||||
|
||||
export const createWebhookRawVariable = (): Variable => ({
|
||||
variable: WEBHOOK_RAW_VARIABLE_NAME,
|
||||
|
||||
Reference in New Issue
Block a user