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

Function mapTrelloMember

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

Source from the content-addressed store, hash-verified

85}
86
87function mapTrelloMember(value: unknown): TrelloMember | null {
88 if (!isRecordLike(value) || typeof value.id !== 'string') {
89 return null
90 }
91
92 return {
93 id: value.id,
94 fullName: getOptionalString(value.fullName),
95 username: getOptionalString(value.username),
96 }
97}
98
99function mapActionCardTarget(value: unknown): TrelloActionCardTarget | null {
100 if (!isRecordLike(value) || typeof value.id !== 'string' || typeof value.name !== 'string') {

Callers 1

mapTrelloActionFunction · 0.85

Calls 2

isRecordLikeFunction · 0.90
getOptionalStringFunction · 0.85

Tested by

no test coverage detected