ts-essentials
Advanced tools
Changelog
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 arraysChangelog
9.1.1
DeepPick
and DeepOmit
for project with TypeScript 4.5 or newerDeepOmit
and DeepPick
for WeakMap in TypeScript 4.1 and 4.2Changelog
9.1.0
IsAny
which returns true if it's any
, otherwise falseArrayOrSingle
DeepPick
with the validation of the filterCamelCase
and DeepCamelCaseProperties
for converting it from other casesDeepOmit
and DeepPick
DeepOmit
by removing 4 intersections for objects and applying generic restriction for FilterPropertyKey
with KeyofBase
to tolerate keyofStringsOnly
option in TypeScriptOptionalKeys
and RequiredKeys
for union of objectsChangelog
9.0.0
IsUnknown
which returns true if it's unknown
, otherwise falseIsNever
which returns true if it's never
, otherwise falseisExact
functionChangelog
8.1.0
DeepRequired
as recursive Required
without removing null
and undefined
ReadonlySet
and ReadonlyMap
in DeepUndefinable
with other sets and mapsDeepPartial
and Buildable
for unknown
ReadonlySet
and ReadonlyMap
in DeepNullable
with other sets and mapsDeepRequired
and DeepNonNullable
in READMEStrictOmit
DictionaryValues
for SafeDictionary
with number and string literals keysStrictOmit
returns never
for arrays and tuplesChangelog
8.0.0
typescript@^4.0.0
StrictExtract
to check the original structure of type and extract it correctlyMergeN
: you can pass tuple of size N and it will recursively apply Merge
DeepReadonly
support for unknown
typeIsTuple
now works with any tuple lengthOpaque