( positionals: string[], errorMessage: string, details?: Record<string, unknown>, )
| 203 | }; |
| 204 | |
| 205 | function readPoint( |
| 206 | positionals: string[], |
| 207 | errorMessage: string, |
| 208 | details?: Record<string, unknown>, |
| 209 | ): Point { |
| 210 | const x = Number(positionals[0]); |
| 211 | const y = Number(positionals[1]); |
| 212 | if (Number.isNaN(x) || Number.isNaN(y)) { |
| 213 | throw new AppError('INVALID_ARGS', errorMessage, details); |
| 214 | } |
| 215 | return { x, y }; |
| 216 | } |
| 217 | |
| 218 | async function handleMacOsSurfacePress( |
| 219 | x: number, |
no outgoing calls
no test coverage detected