Make core fn Zod import type-only (#27103)
This commit is contained in:
@@ -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) {
|
export function fn<T extends z.ZodType, Result>(schema: T, cb: (input: z.infer<T>) => Result) {
|
||||||
const result = (input: z.infer<T>) => {
|
const result = (input: z.infer<T>) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user