Home > @skunkteam/types > Type
A type-validator/-parser that validates or parses ResultType
.
Signature:
type Type<ResultType, TypeConfig = unknown> = TypeImpl<BaseTypeImpl<ResultType, TypeConfig>>;
References: TypeImpl, BaseTypeImpl
This is the most generic interface that describes a type. It does not provide access to type-specific utilities / properties. Use TypeImpl for an interface that describes the actual Type implementation. ResultType
can be any type, both scalar and object-like. Use ObjectType<ResultType>
to restrict ResultType
to object-like types.