Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 854 Bytes

types.type.md

File metadata and controls

19 lines (11 loc) · 854 Bytes

Home > @skunkteam/types > Type

Type type

A type-validator/-parser that validates or parses ResultType.

Signature:

type Type<ResultType, TypeConfig = unknown> = TypeImpl<BaseTypeImpl<ResultType, TypeConfig>>;

References: TypeImpl, BaseTypeImpl

Remarks

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.