ts-essentials
Advanced tools
Changelog
9.4.2
WeakKey
for WeakSet
and WeakMap
)Changelog
9.4.1
Changelog
9.4.0
typescript
optional as a peer dependencyChangelog
9.3.2
DeepPartial
, DeepRequired
, DeepWritable
and DeepReadonly
can update structure of Error
or interface
which extends Error
isTuple
, DeepNullable
, DeepPartial
, and DeepUndefinable
Changelog
9.3.1
Tuple
's type implementation to only use a tuple type (instead of a union of a tuple type and an
array type).__OPAQUE_TYPE__
in Opaque
that cannot be used outside of ts-essentialsNonEmptyObject<T>
to not allow primitivesValueOf
utility type to cover the edge casesChangelog
9.3.0
ReadonlyArrayOrSingle
which is a counterpart to ArrayOrSingle
with the array being readonlycreateFactoryWithConstraint
Tail
to use variadic tuple typeDeepReadonly
for a union with an array of itselfMarkRequired
, MarkOptional
, MarkReadonly
and MarkWritable
StrictExtract
usage for TypeScript@^4.6.0Changelog
9.2.0
NonEmptyArray
which ensures an array to have at least one itemStrictExclude
, a stricter version of Exclude
MarkWritable
which unsets readonly for specified keysMarkReadonly
which sets readonly for specific keysDeepPartial
for normal arrays