(path: string, message: string)
| 200 | } |
| 201 | |
| 202 | function paramsError(path: string, message: string): RuntimeValidationResult<never> { |
| 203 | return { ok: false, error: { code: "invalid_params", message, path } } |
| 204 | } |
| 205 | |
| 206 | function validateRecordParams(params: unknown): RuntimeValidationResult<Record<string, unknown>> { |
| 207 | if (typeof params !== "object" || params === null || Array.isArray(params)) return paramsError("$", "Runtime params must be an object") |
no outgoing calls
no test coverage detected