Skip to content

Cerces


Cerces / types / PathStringOf

Type Alias: PathStringOf<Ps>

PathStringOf<Ps> = PathString<keyof { [K in keyof Ps as Ps[K] extends PathParameter<infer Schema> ? Schema extends z.ZodOptional<z.ZodTypeAny> ? never : K : never]: Ps[K] }>

Defined in: src/types.ts:236

Infer the path string literal template of route parameters.

Type Parameters

Ps

Ps