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

Function toBoolean

apps/sim/blocks/blocks/incidentio.ts:1098–1098  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1096 params: (params) => {
1097 const result: Record<string, unknown> = {}
1098 const toBoolean = (value: unknown) => value === true || value === 'true'
1099 if (params.page_size) result.page_size = Number(params.page_size)
1100 if (params.notify_incident_channel !== undefined) {
1101 result.notify_incident_channel = toBoolean(params.notify_incident_channel)

Callers 1

incidentio.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected