Derives the TypeScript type of an object that satisfies the given schema.
Use directly on a schema literal — no as const required when calling
parse/safeParse, thanks to the <const S> parameter.
Pass R when the schema uses aliases registered through Typer#extend, so
they resolve to their real types instead of unknown.
Derives the TypeScript type of an object that satisfies the given schema. Use directly on a schema literal — no
as constrequired when callingparse/safeParse, thanks to the<const S>parameter.Pass
Rwhen the schema uses aliases registered throughTyper#extend, so they resolve to their real types instead ofunknown.