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

Function mapTrelloLabel

apps/sim/tools/trello/shared.ts:75–85  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

73}
74
75function mapTrelloLabel(value: unknown): TrelloLabel | null {
76 if (!isRecordLike(value) || typeof value.id !== 'string') {
77 return null
78 }
79
80 return {
81 id: value.id,
82 name: typeof value.name === 'string' ? value.name : '',
83 color: getOptionalString(value.color),
84 }
85}
86
87function mapTrelloMember(value: unknown): TrelloMember | null {
88 if (!isRecordLike(value) || typeof value.id !== 'string') {

Callers 1

mapTrelloCardFunction · 0.85

Calls 2

isRecordLikeFunction · 0.90
getOptionalStringFunction · 0.85

Tested by

no test coverage detected