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

Function columnTypeForLeaf

apps/sim/lib/table/column-naming.ts:45–56  ·  view source on GitHub ↗
(leafType: string | undefined)

Source from the content-addressed store, hash-verified

43 * union falls back to `json`, the most permissive shape that still validates.
44 */
45export function columnTypeForLeaf(leafType: string | undefined): ColumnDefinition['type'] {
46 switch (leafType) {
47 case 'string':
48 case 'number':
49 case 'boolean':
50 case 'date':
51 case 'json':
52 return leafType
53 default:
54 return 'json'
55 }
56}

Callers 4

executeFunction · 0.90
handleSaveFunction · 0.90
updateWorkflowGroupFunction · 0.85
addWorkflowGroupOutputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected