Преглед изворни кода

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

Kit Langton пре 4 месеци
родитељ
комит
53a3f95088
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/core/src/util/fn.ts

+ 1 - 1
packages/core/src/util/fn.ts

@@ -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>) => {