diff options
| author | Dax Raad <[email protected]> | 2025-09-09 23:43:37 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-09-09 23:44:04 -0400 |
| commit | 38e8c42cf02f73fb300889ab989088899a3aedb7 (patch) | |
| tree | 313db96535cf136cc1032618b43462c1f2f0e14c /cloud/core/src | |
| parent | 58fe88432714456350244ebbea1e6287d3dccb36 (diff) | |
| download | opencode-38e8c42cf02f73fb300889ab989088899a3aedb7.tar.gz opencode-38e8c42cf02f73fb300889ab989088899a3aedb7.zip | |
ci: format
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) |
