Detect what kind of schema an unknown value is.
Detection order (most specific → least specific):
._def.type
.def.type
.safeParse()
.parse()
.type
.properties
Detect what kind of schema an unknown value is.
Detection order (most specific → least specific):
._def.typeor.def.typestring.safeParse()or.parse()(Zod-like, yup, superstruct, etc.).typestring or.propertiesobject (structural markers)