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

Function mapActionBoardTarget

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

Source from the content-addressed store, hash-verified

111}
112
113function mapActionBoardTarget(value: unknown): TrelloActionBoardTarget | null {
114 if (!isRecordLike(value) || typeof value.id !== 'string' || typeof value.name !== 'string') {
115 return null
116 }
117
118 return {
119 id: value.id,
120 name: value.name,
121 shortLink: getOptionalString(value.shortLink),
122 }
123}
124
125function mapActionListTarget(value: unknown): TrelloActionListTarget | null {
126 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