A collection of essential TypeScript types
CC0-1.0 License
Bot releases are hidden (Show)
Mutable
type to Writable
ff0de63PromiseValue
type in favor of the built-in Awaited
type 28f3e48Get
: Make the strict
option true
by default a7f367dPartialDeep
: Make the recurseIntoArrays
option false
by default db89d9cSimplify
: Remove the deep
option (#441) bbccfb8
SimplifyDeep
type. So if you depend on this type, defer upgrading until it's added.EmptyObject
(#447) f46b85aIsEmptyObject
(#447) f46b85aTupleToUnion
(#440) eac8c6fOmitIndexSignature
(#453) 28e55b9PickIndexSignature
(#453) 28e55b9ConditionalPickDeep
(#444) 3cb67d7ConditionalSimplify
(#442) beaabe1ConditionalSimplifyDeep
(#442) beaabe1Merge
: Add index signatures support and improve performances (#455) 850ac04DelimiterCase
: Support screaming snake case as input (#448) f53e3dcJsonify
: Add support for optional object keys (#445) d83d62cPackageJson
: Add packageManager
field (#446) ac5b821TsConfigJson
: Add some Module
values 1003d5dDelimiterCase
: Fix regression after TypeScript 4.8 (#464) 2a2f310Merge
: Fix index signature type overwrite (#460) eb7f08bMerge
: Fix optional keys and type override (#456) 2e443e2PackageJson
: Fix the type (#465) f3b13e3JsonObject
: Fix the type (#465) f3b13e3https://github.com/sindresorhus/type-fest/compare/v2.19.0...v3.0.0
SetNonNullable
(#431) 1a69e63Exact
: Support array union (#421) edcad04PackageJson
: Support condition object in exports
array (#439) 290e3a2https://github.com/sindresorhus/type-fest/compare/v2.18.1...v2.19.0
Jsonify
: Do not downgrade tuples to arrays (#433) 8a014e5Spread
: Support arrays/tuples (#435) 96acab1https://github.com/sindresorhus/type-fest/compare/v2.18.0...v2.18.1
Spread
(#427) efba9f4PartialOnUndefinedDeep
(#426) 1cbd351https://github.com/sindresorhus/type-fest/compare/v2.17.0...v2.18.0
recurseIntoArrays
option for PartialDeep
(#400) 3777469https://github.com/sindresorhus/type-fest/compare/v2.16.0...v2.17.0
OptionalKeysOf
(#405) f0b1c3fHasOptionalKeys
(#405) f0b1c3fRequiredKeysOf
(#405) f0b1c3fHasRequiredKeys
(#405) f0b1c3fSimplify
: Add deep
option (#414) 96fe795Replace
: Fix the all
option (#416) 1483de3Includes
: Fix false-positive when the array contains null
and you are checking against undefined
(#413) de5e7fcSimplify
: Fix handling of some types (#414) 96fe795https://github.com/sindresorhus/type-fest/compare/v2.15.1...v2.16.0
BigInt
(#412) 095831chttps://github.com/sindresorhus/type-fest/compare/v2.15.0...v2.15.1
Jsonify
type more correct (#410) 8ca2959https://github.com/sindresorhus/type-fest/compare/v2.14.0...v2.15.0
UnwrapOpaque
type (#403) d4d4481https://github.com/sindresorhus/type-fest/compare/v2.13.1...v2.14.0
TsConfigJson
to require paths
array (#404) 74891f0https://github.com/sindresorhus/type-fest/compare/v2.13.0...v2.13.1
Exact
(#259) 9394d54ReadonlyTuple
(#383) f445cc6Replace
(#389) 5c793ceMutable
to Writable
(#398) 638d597
Mutable
still works and is now just a deprecated alias.PackageJson
and TsConfigJson
(#269) f2aae51https://github.com/sindresorhus/type-fest/compare/v2.12.2...v2.13.0
Get
: Fix TypeScript 4.7 compatibility (#388) 6c7ac47TsConfig
: Add watchOptions
field (#384) 7aa0605Jsonify
: Handle undefined
in array (#310) 17b0235https://github.com/sindresorhus/type-fest/compare/v2.12.1...v2.12.2
PackageJson
: Allow null
targets in Exports
type (#377) 25d0204https://github.com/sindresorhus/type-fest/compare/v2.12.0...v2.12.1
imports
field in PackageJson
type (#365)https://github.com/sindresorhus/type-fest/compare/v2.11.2...v2.12.0
node-addons
in PackageJson
export condition (#362) 947f637https://github.com/sindresorhus/type-fest/compare/v2.11.1...v2.11.2
ReadonlyDeep
: Fix handling of objects with call signatures (#359) db54028ReadonlyDeep
: Fix sets and maps not getting immutable methods (#358) 0ff4461https://github.com/sindresorhus/type-fest/compare/v2.11.0...v2.11.1
InvariantOf
type (#352) dea70a4Schema
type (#321) 3aabfbcGet
: Support read only arrays (#355) dc7043chttps://github.com/sindresorhus/type-fest/compare/v2.10.0...v2.11.0
RemoveIndexSignature
type (#335) 8103238StringKeyOf
type (#344) 103966bDate
and RegExp
in "deep" types 3243e22 3cc721bGet
to accept Path
as string[]
(#353) ca45956https://github.com/sindresorhus/type-fest/compare/v2.9.0...v2.10.0
LiteralToPrimitive
type (#340) ab210ebJsonify
: Allow partial types (#312) 600f0c2Get
: Add strict mode (#317) b9ace21https://github.com/sindresorhus/type-fest/compare/v2.8.0...v2.9.0
Float
type (#330) 7770489https://github.com/sindresorhus/type-fest/compare/v2.7.0...v2.8.0