Make core fn Zod import type-only (#27103)

This commit is contained in:
Kit Langton
2026-05-12 12:58:50 -04:00
committed by GitHub
parent 5a4596c879
commit 53a3f95088

View File

@@ -1,4 +1,4 @@
import { z } from "zod"
import type { 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>) => {