diff options
Diffstat (limited to 'cloud/core/src')
| -rw-r--r-- | cloud/core/src/util/fn.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cloud/core/src/util/fn.ts b/cloud/core/src/util/fn.ts index 038a50719..52df65e2b 100644 --- a/cloud/core/src/util/fn.ts +++ b/cloud/core/src/util/fn.ts @@ -1,9 +1,6 @@ import { z } from "zod" -export function fn<T extends z.ZodType, Result>( - schema: T, - cb: (input: z.output<T>) => Result, -) { +export function fn<T extends z.ZodType, Result>(schema: T, cb: (input: z.output<T>) => Result) { const result = (input: z.input<T>) => { const parsed = schema.parse(input) return cb(parsed) |
