(path: string, message: string)
| 3 | type ParamCheck = (record: Record<string, unknown>) => RuntimeValidationResult<unknown> | null |
| 4 | |
| 5 | function paramsError(path: string, message: string): RuntimeValidationResult<never> { |
| 6 | return { ok: false, error: { code: "invalid_params", message, path } } |
| 7 | } |
| 8 | |
| 9 | export function validateRecordParams(params: unknown): RuntimeValidationResult<Record<string, unknown>> { |
| 10 | if (params === undefined) return { ok: true, value: {} } |
no outgoing calls
no test coverage detected