GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — opencode/packages/opencode/src/util/fn.ts at dev · kasbah/opencode Expand file tree/ Copy pathfn.tsMore file actions 11 lines (10 loc) · 321 Bytes / Copy pathfn.tsFile metadata and controls11 lines (10 loc) · 321 Bytes 1 2 3 4 5 6 7 8 9 10 11 import { z } from "zod" export function fn<T extends z.ZodType, Result>(schema: T, cb: (input: z.infer<T>) => Result) { const result = (input: z.infer<T>) => { const parsed = schema.parse(input) return cb(parsed) } result.force = (input: z.infer<T>) => cb(input) result.schema = schema return result } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |