Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / Out

Type Alias: Out<S>

ts
type Out<S> = S extends StandardSchemaV1 ? InferOutput<S> : S extends {
  validate: (value) => value is infer T;
} ? T : unknown;

Defined in: packages/core/src/l0/schema.ts:34

Inferred output type per form: the Standard Schema output type; the type-guard target of validate(); unknown for a bare JSON Schema.

Type Parameters

Type Parameter
S