(path: string, message: string, code = "invalid_message")
| 364 | } as const |
| 365 | |
| 366 | function validationError(path: string, message: string, code = "invalid_message"): RuntimeValidationResult<never> { |
| 367 | return { ok: false, error: { code, message, path } } |
| 368 | } |
| 369 | |
| 370 | function paramsError(path: string, message: string): RuntimeValidationResult<never> { |
| 371 | return validationError(path, message, "invalid_params") |
no outgoing calls
no test coverage detected