@getplate/types
v0.1.0
Published
This package contains various utility types.
Downloads
12
Readme
types
This package contains a number of general utility types that are used throughout many projects.
Features
Constructor<T>
which is a type that represents the constructor of a class.ContentValueTypeName<T>
type which maps the typeT
to the correspondingContentValueTypeName
.ContentValueTypeNames
which represents the names of the different types which a Content Value can be.ContentValueType
which represents the different types which a Content Value can be.HeaderKeys
enum which represents the keys of custom request headers.PrimitiveConstructor
union which represents the constructors of the primitive types.Primitive
union which represents the primitive types.ReturnConstructorFunction
function which returns the constructor of a function. This is useful for certain metadata applications.Stage
enum which represents the different stages in which Content can be.isPrimitiveType
function which checks if a given constructor is a primitive constructor.