( amount: number | undefined, pixels: number | undefined, durationMs: number | undefined, )
| 771 | } |
| 772 | |
| 773 | function assertScrollCommandInputs( |
| 774 | amount: number | undefined, |
| 775 | pixels: number | undefined, |
| 776 | durationMs: number | undefined, |
| 777 | ): void { |
| 778 | assertScrollAmountInput(amount); |
| 779 | normalizeScrollDurationMs(durationMs); |
| 780 | assertExclusiveScrollDistanceInputs({ amount, pixels }); |
| 781 | } |
| 782 | |
| 783 | function assertScrollAmountInput(amount: number | undefined): void { |
| 784 | if (amount !== undefined && !Number.isFinite(amount)) { |
no test coverage detected