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

Function mapTrelloList

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

Source from the content-addressed store, hash-verified

134}
135
136export function mapTrelloList(value: unknown): TrelloList {
137 if (!isRecordLike(value)) {
138 throw new Error('Trello returned an invalid list object')
139 }
140
141 return {
142 id: getRequiredString(value.id, 'id'),
143 name: getRequiredString(value.name, 'name'),
144 closed: typeof value.closed === 'boolean' ? value.closed : false,
145 pos: getNumber(value.pos),
146 idBoard: getRequiredString(value.idBoard, 'idBoard'),
147 }
148}
149
150export function mapTrelloCard(value: unknown): TrelloCard {
151 if (!isRecordLike(value)) {

Callers 2

create_list.tsFile · 0.90
list_lists.tsFile · 0.90

Calls 3

isRecordLikeFunction · 0.90
getRequiredStringFunction · 0.85
getNumberFunction · 0.70

Tested by

no test coverage detected