chore: knip fix (#34481)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2026-04-02 23:03:42 +08:00
committed by GitHub
parent 985b41c40b
commit 36e840cd87
403 changed files with 475 additions and 3679 deletions

View File

@ -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]

View File

@ -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,