MCPcopy Index your code
hub / github.com/simstudioai/sim / formatFalAIDuration

Function formatFalAIDuration

apps/sim/app/api/tools/video/route.ts:1074–1083  ·  view source on GitHub ↗
(
  format: FalAIDurationFormat | undefined,
  duration: number | undefined
)

Source from the content-addressed store, hash-verified

1072}
1073
1074function formatFalAIDuration(
1075 format: FalAIDurationFormat | undefined,
1076 duration: number | undefined
1077): string | number | undefined {
1078 if (!format || duration === undefined) return undefined
1079
1080 if (format === 'number') return duration
1081 if (format === 'seconds') return `${duration}s`
1082 return String(duration)
1083}
1084
1085function getStringProperty(
1086 record: Record<string, unknown> | undefined,

Callers 1

generateWithFalAIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected