MCPcopy Index your code
hub / github.com/callstack/agent-device / assertScrollAmountInput

Function assertScrollAmountInput

src/core/dispatch-interactions.ts:783–787  ·  view source on GitHub ↗
(amount: number | undefined)

Source from the content-addressed store, hash-verified

781}
782
783function assertScrollAmountInput(amount: number | undefined): void {
784 if (amount !== undefined && !Number.isFinite(amount)) {
785 throw new AppError('INVALID_ARGS', 'scroll amount must be a number');
786 }
787}
788
789async function runDispatchedScroll(
790 interactor: Interactor,

Callers 1

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected