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

Function resolvePositiveInt

apps/sim/tools/slack/utils.ts:83–86  ·  view source on GitHub ↗
(value: unknown, fallback: number)

Source from the content-addressed store, hash-verified

81 * disabling pagination.
82 */
83export function resolvePositiveInt(value: unknown, fallback: number): number {
84 const parsed = Number(value)
85 return Number.isFinite(parsed) && parsed > 0 ? Math.floor(parsed) : fallback
86}
87
88export interface SlackPaginateOptions {
89 /** Bot or OAuth bearer token. */

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected