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

Function mapActionListTarget

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

Source from the content-addressed store, hash-verified

123}
124
125function mapActionListTarget(value: unknown): TrelloActionListTarget | null {
126 if (!isRecordLike(value) || typeof value.id !== 'string' || typeof value.name !== 'string') {
127 return null
128 }
129
130 return {
131 id: value.id,
132 name: value.name,
133 }
134}
135
136export function mapTrelloList(value: unknown): TrelloList {
137 if (!isRecordLike(value)) {

Callers 1

mapTrelloActionFunction · 0.85

Calls 1

isRecordLikeFunction · 0.90

Tested by

no test coverage detected