@pcvl/schema / InferInput
Type Alias: InferInput<TSchema>
ts
type InferInput<TSchema> = StandardSchemaV1.InferInput<TSchema>;Defined in: types.ts:23
The type a schema accepts as input — what a value must look like going in.
Type Parameters
TSchema
TSchema extends StandardSchemaV1
Example
ts
import { pvl, type InferInput } from '@pcvl/schema';
const port = pvl.number().coerce();
type PortInput = InferInput<typeof port>; // unknown — `.coerce()` accepts anything