Core
struct.any
Struct that accepts any value except null and undefined, without validation.
@defjs/core · Function
Signature
function any(): Struct<PresentValue, any>;
The value is returned unchanged, and nothing inside it is validated or stripped.
-
Chain
.null(),.optional(), or.nullish()to acceptnullorundefined. -
The output type is
any. Prefer struct.unknown() when the caller should narrow the value.