UNPKG

next-typesafe-path

Version:
5 lines (4 loc) 164 B
import { z } from 'zod'; export type InferSearchParams<T extends z.ZodType> = { [K in keyof z.infer<T> as K extends string ? K : never]: z.infer<T>[K]; } & {};