ci: format
This commit is contained in:
parent
58fe884327
commit
38e8c42cf0
68 changed files with 965 additions and 1062 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue