MCPcopy Index your code
hub / github.com/langgenius/dify / normalizeMode

Function normalizeMode

cli/src/api/apps.ts:16–18  ·  view source on GitHub ↗
(mode: SupportedAppType | '' | undefined)

Source from the content-addressed store, hash-verified

14
15// An absent or empty mode filter means "any mode" — collapse both to undefined for the query.
16export function normalizeMode(mode: SupportedAppType | '' | undefined): SupportedAppType | undefined {
17 return mode !== undefined && mode !== '' ? mode : undefined
18}
19
20export class AppsClient implements AppReader {
21 private readonly orpc: OpenApiClient

Callers 2

listMethod · 0.90
listMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected