NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #19 most downloaded on npm
A collection of essential TypeScript types
Latest stable
6.0.3
Last release 3 days ago
19 Nov 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
198 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Exact : Preserve readonly index signatures 2a0893b
Exact : Fix slow type-checking with an index signature and a generic input value 22d031b
Exact: Fix slow type-checking with an index signature and a generic input value 22d031bYour coding agent can read these notes before it upgrades. Set up the MCP server →
SetOptional , SetRequired , SetReadonly : Fix out-of-memory type-checking with generic keys 80b7baa
Remove the deprecated IfAny , IfNever , IfUnknown , IfNull , and IfEmptyObject types. Use If with the matching Is* type. 6fc1861
This is a huge release! 120 new types. All open issues resolved. A huge number of performance and correctness fixes.
exactOptionalPropertyTypes: true in your tsconfig 82f2b44
exactOptionalPropertyTypes: false. Disabling it is unsupported.type-fest requires strict, which is the default since TypeScript 6. Do not set it to false.IfAny, IfNever, IfUnknown, IfNull, and IfEmptyObject types. Use If with the matching Is* type. 6fc1861ReadonlyTuple type. Use Readonly<TupleOf<Length, Element>>. 6fc1861CamelCase, PascalCase, KebabCase, SnakeCase, ScreamingSnakeCase, DelimiterCase, Words, and their *CasedProperties / *CasedPropertiesDeep types: Enable splitOnPunctuation by default. ebc42e5
KebabCase<'div.card::after'> is now 'div-card-after' (was 'div.card::after').$ is now removed: CamelCase<'$foo'> is 'foo'.CamelCase / PascalCase (and their *CasedProperties types): Disable splitOnNumbers by default 976bd26
CamelCase<'p2p_network'> is now 'p2pNetwork' (was 'p2PNetwork'). The other case types already used false.CamelCase / PascalCase (and their *CasedProperties types): Enable preserveLeadingUnderscores by default 8144ba1
CamelCase<'_id'> is now '_id' (was 'id'). This matches the camelcase package.PascalCase<'_foo_bar'> is now '_FooBar' (was 'FooBar').Words: With splitOnPunctuation: false, punctuation now stays inside the word: Words<'hello:world', {splitOnPunctuation: false}> is ['hello:world'] (was ['hello', ':world']) 9f2ad66PartialDeep: Enable recurseIntoArrays by default. ab0e23d
allowUndefinedInNonTupleArrays: true now works alone. Before, it also needed recurseIntoArrays: true.PartialOnUndefinedDeep: Enable recurseIntoArrays by default 939abe3ExtendsStrict: Enable strictAny by default, so ExtendsStrict<any, number> is now false. Pass {strictAny: false} to get the old behavior. b2f7ed4Split: Rename the strictLiteralChecks option to strict bc38ddbStringToArray: Replace the mapNonLiteralsDirectly option with strict, which has the opposite meaning. {mapNonLiteralsDirectly: true} is now {strict: false}. b61e528
ReadonlyDeep: Convert Date to the new ReadonlyDate type, which has no set* methods. WritableDeep converts it back to Date. c533251TsConfigJson: Remove the options and values that TypeScript 5.5 removed and that TypeScript 6.0 deprecated. 393c093 0716fa8 4e54420 65b2db8false instead of never when an input is never 9ec1de5
IsEmptyObject, IsFloat, IsInteger, IsNegative, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Includes, IsOptionalKeyOf, IsRequiredKeyOf, IsReadonlyKeyOf, and IsWritableKeyOf.IsNever or [Result] extends [never], check for false instead.IsNull / IsUndefined: Return false for any and never (was true) 349271e 750177a 65fc2ebIsOptionalKeyOf / IsRequiredKeyOf / IsReadonlyKeyOf / IsWritableKeyOf: Read a literal key of an index signature like the index signature, and read an any object like Record<PropertyKey, any> 62df5d9 5a2e786
IsOptionalKeyOf<Record<string, number>, 'x'> is now true (was false), and IsRequiredKeyOf is now false.IsReadonlyKeyOf<{readonly [key: string]: number}, 'x'> is now true (was false).any object, the result was never. Now a literal key is optional and writable, so IsOptionalKeyOf<any, 'a'> and IsWritableKeyOf<any, 'a'> are true, and IsRequiredKeyOf<any, 'a'> and IsReadonlyKeyOf<any, 'a'> are false. A string, number, or symbol key is required, and an any key gives boolean.FixedLengthArray: Return never for a non-literal length, like number. Use a normal array type for an unknown length. 88281feFinite / NonNegative: Return never for the wide number type (was number) 23e295fNonNegative / Negative: Reject Infinity and -Infinity (for example 1e999) 608026dJsonifiable: Reject values typed object, because they can contain anything 92aba94ConditionalPickDeep: Match any and never values like ConditionalKeys. A never value is no longer picked, and an any value is now picked. 02aef94Simplify: Keep functions, class constructors, and branded primitives as is. Simplify<() => void> was {}. 28b9f8e 7d0a323Merge: Keep the call signatures of the input 166b209PartialDeep, ReadonlyDeep, RequiredDeep, and others) no longer recurse into DOM nodes, like HTMLElement e379753Entries / Entry: Pair each key with its own value. Entry<{a: 1; b: 'x'}> is now ['a', 1] | ['b', 'x'] (was ['a' | 'b', 1 | 'x']). 34d036fValueOf: Read the values of every union member. ValueOf<{a: 1} | {b: 2}> is now 1 | 2 (was never). 6a0de70 1a2e90aGet: Return undefined for the union members that do not have the key. Get<{a: 1} | {b: 2}, 'a'> is now 1 | undefined (was unknown). cc955bdLiteralToPrimitiveDeep: Keep tuples as tuples. [1] becomes [number] (was number[]). 8173c2cLiteralToPrimitive: Return any for any 65fc2ebMultidimensionalArray / MultidimensionalReadonlyArray: Allow leaf values at all levels when the dimension is not known 762b656RemovePrefix / RemoveSuffix: Return string when a non-literal input cannot contain the affix. RemovePrefix<`user_${string}`, 'admin_'> is now string (was `user_${string}`). b8c6ef2 1fbd1d2IsEmptyObject: Return false for object (was true) and for any (was boolean) 43c237d 9ec1de5HasRequiredKeys: Return false for index signatures, arrays without required elements, and any (was true) 1c184e6IsFloat: Return boolean for any (was false) cdf0edeAsyncify: Keep the return type of each function in a union 1b374deSingleKeyObject: Return never for boolean (was boolean), and return broad object types, like object and Record<string, number>, as is (was never) 2745e8f 43c237dStringToArray: A non-literal part gives string elements, because each character does not always match the type of the whole part. StringToArray<Lowercase<string>> is now string[] (was Lowercase<string>[]). b9337f2Opaque and UnwrapOpaque are still deprecated, and v7 will remove them. Use Tagged and UnwrapTagged. 62c465eAnyAsyncFunction: Matches any asynchronous function. 32c73cdAnyFunction: Matches any function. 32c73cdApplyDefaultOptions: Apply default options to specified options, preserving literal types. b22217aArrayAt: Get the type of the element at the given index of an array, like Array#at(). f00afbbArrayChunk: Split an array into consecutive chunks of the given size. b68f6cfArrayFlat: Flatten an array type to the given depth, like Array#flat(). d4b8be9ArrayGroupBy: Group an array of objects by a property, preserving the order within each group. b68f6cfArrayToRecord: Transforms an array of objects into a record keyed by one of their properties. beb7d8aArrayTrim: Remove the elements of the given type from both ends of an array. 219ea42ArrayTrimEnd: Remove the elements of the given type from the end of an array. 219ea42ArrayTrimStart: Remove the elements of the given type from the start of an array. 219ea42ArrayUnique: Remove duplicate element types from an array, preserving their first occurrence. b68f6cfArrayZip: Pair the elements at matching positions in two arrays. b68f6cfAsciiPunctuationCharacter: Matches a single ASCII punctuation character. fbecabaAsExtendable: Allow any object type to be used in the extends clause of an interface or the implements clause of a class, which otherwise only accept a type name. 9b93e09AsyncFunction: Matches an asynchronous function. 32c73cdCamelCaseString: A string that is in camel case, like 'fooBar'. 70e7c1aCollapseLiterals: Collapse literal union members into broader types already present in the union. ef86da2ConsistsOnlyOf: Returns a boolean for whether a string consists only of zero or more repetitions of the given pattern. d941796Curry: Convert a function into a chain of functions that each accept one argument. b68f6cfDefaultsFor: Create the type of a defaults object for the given options type, with only its optional keys, made required. 6d3571cEmptyArray: Represents a strictly empty readonly array, implemented as the readonly empty tuple readonly []. 15416b2ExcludeValues: Exclude the given type from the value of every property in an object type, or every element in an array type. 8b6905cExtractLiterals: Extract the literal types from a union, removing wide types like string and infinite string types like `on${string}`. 29ab96dExtractValues: Extract the given type from the value of every property in an object type, or every element in an array type. 4fbae20Falsy: Matches any falsy value. 27f2429FirstArrayElement: Extract the type of the first element of an array. 8d73897Flavor: Attach a name to a type without requiring a cast, so that differently named types cannot be mixed. adf9875FromEntries: Create an object type from an array of key-value pairs. b68f6cfFunctionParameters: Extract the parameters of a function type as a tuple. c437399GuardedType: Extract the type that a type predicate function narrows its parameter to. 65955f9HasMultipleCallSignatures: Returns a boolean for whether the given function type has multiple distinct call signatures. 9402832IncompatibleKeys: Get the keys that both types have, where the property in Source is not assignable to the property in Target. d5d96f6IndexOf: Returns the union of indices at which the given item can be found in the given array. 2fbae25IndexTuple: Create a tuple type of the indices of a constant array or tuple. 0e170c9InvertRecord: Create a record that maps each property value to its original keys. b68f6cfIsMutuallyAssignable: Returns a boolean for whether the two given types are mutually assignable. abb2df2IsNumberLike: Returns a boolean for whether the given type is a number or a numeric string. 8f1cc35IsNumericString: Returns a boolean for whether the given type is a numeric string without surrounding whitespace. 48d6a5fIsPrimitive: Returns a boolean for whether the given type is a primitive. b54cc19IsReadonlyArray: Returns a boolean for whether the given array or tuple is readonly. 99268d9IsRecordLike: Returns a boolean for whether the given type is a record-like object. 2c97a9bIsTemplateLiteral: Returns a boolean for whether the given type is a template literal type: a string type with infinitely many possible values, other than plain string. 47ef070IsUnionMember: Returns a boolean for whether the given union type includes the given member. f892fd8IsWhitespace: Returns a boolean for whether a string is non-empty and consists only of whitespace characters. be1b5d8JoinUnion: Join a union of strings and/or numbers using the given string as a delimiter. 6a1e840JsonifiableArray: Matches an array that can be losslessly converted to JSON. 619b7baJsonifiableObject: Matches an object that can be losslessly converted to JSON. 619b7baJsonifiableValue: Validates that a function argument of type Value can be losslessly converted to JSON, including an interface. 97fe10aJsonPointer: Generate a union of all possible JSON Pointer strings for the given type. e3f4efbKebabCaseString: A string that is in kebab case, like 'foo-bar'. 70e7c1aLiteralList: Enforces that a tuple contains exactly the members of a union type, with no duplicates or omissions. 6a1e840MapKey: Get the key type of a Map, ReadonlyMap, or WeakMap. 1ff1dc1MapValue: Get the value type of a Map, ReadonlyMap, or WeakMap. 1ff1dc1MatchingKey: Resolve a property key to the matching key type in an object, converting between numeric and string forms when needed. a23883fMergeAll: Merge any number of types into a new type. Keys of each type override keys of the types before it. b550b41MinimumLengthArray: Create an array type with at least the given number of elements of the given type. 8303a6eModify: Create a type from an object type and a modifier type, where keys of the modifier type override keys of the object type, and keys with the never type are removed from the result. 6981c50ModifyDeep: Recursively create a type from an object type and a modifier type, where keys of the modifier type override keys of the object type, and keys with the never type are removed from the result. 6981c50Negate: Returns the specified number with its sign reversed. 5b1c348NonNegativeIntegerString: A string that represents a non-negative integer, like '42'. df2fb32Not: Returns a boolean for whether the given type is false. c3328b0ObjectEntries: Create a type that describes the key-value pairs produced by Object.entries, even for a generic object type. cf1f757ObjectEntry: Create a type that describes a single key-value pair produced by Object.entries, even for a generic object type. cf1f757ObjectToTuple: Convert an object with consecutive numeric keys starting at zero into a tuple. c53a825ObjectToUnion: Create a union of single-property objects, one for each property of the given object. 7f522f9OptionalPaths: Get a union of all paths to optional properties in the given object. a1c5705OverloadParameters: Extract the parameter types of all overloads as a union. 2508f3cOverloadReturnType: Extract the return types of all overloads as a union. 2508f3cOverloads: Extract all overload signatures of the given function type as a tuple, preserving declaration order. 2508f3cOverridePropertiesDeep: Override existing properties of the given type deeply. Similar to MergeDeep, but requires overridden keys to exist at every level. c96c9efParsePath: Convert a property path into a tuple of keys, with numeric indices. 03f5566PartialApply: Create the type of a function with the given leading arguments already applied. d232733PartialOnUndefined: Create a type where all keys accepting undefined type are set to optional. 9ad0fb4PascalCaseString: A string that is in pascal case, like 'FooBar'. 70e7c1aPickNonNever: Pick only the properties of the given object type that do not have the never type. a15cfd8PickReadonly: Pick only the readonly properties from the given object type, leaving out the writable ones. 892423aPickWritable: Pick only the writable properties from the given object type, leaving out the readonly ones. 892423aPipe: Create the signature of a function pipeline, checking that adjacent stages are compatible. b68f6cfPropertyValue: Get the type of a property, or never if the key does not exist. 37d6f0eReadonlyDate: Matches a Date that cannot be changed. 9c943a5RequireArity: Require a function to have at least the given number of required parameters. 50b0027RequiredKeepUndefined: Create a type that makes all keys required, while the keys that were optional also accept undefined. 55dede9RequiredNonNullable: Create a type that makes all keys required and non-nullable, including the elements of an array or tuple. be3f010RequireNone: Create an object type that forbids the given keys, to intersect with another object type. 5b12320RouteParameters: Extract the named parameters from a URL route pattern, like /users/:id. e529994ScreamingSnakeCasedProperties: Convert top-level object properties to screaming snake case. 2e1d2cdScreamingSnakeCasedPropertiesDeep: Convert object properties to screaming snake case recursively. 2e1d2cdScreamingSnakeCaseString: A string that is in screaming snake case, like 'FOO_BAR'. 70e7c1aSetNullable: Create a type that makes the given keys nullable, while keeping the remaining keys as is. f227ed8SetOptionalDeep: Create a type that makes the given keys optional, with support for deeply nested key paths, while keeping the remaining keys as is. 2398c41SetOptionalExcept: Create a type that makes all keys optional except the given keys, which are kept as is. 0cf968cSetProperty: Set a deeply-nested property on an object using a key path, like Lodash's .set() function. b2f526bSetRequiredExcept: Create a type that makes all keys required except the given keys, which are kept as is. 0cf968cSetRequiredNonNullable: Create a type that makes the given keys required and non-nullable, while keeping the remaining keys as is. 419959bSimplifyUnion: Flattens a union type to improve type hints shown in editors, by showing the members instead of the type alias names. 86ea62cSnakeCaseString: A string that is in snake case, like 'foo_bar'. 70e7c1aStartsWith: Returns a boolean for whether the given string starts with the given prefix. 0cbb6e8StrictEventTarget: A stricter version of EventTarget that maps event names to event types. 52914ecNote truncated.
Add UnionMax type ( #1519 ) 061ef87
SharedUnionFieldsDeep : Ensure it doesn't distribute processed union over mapped type ( #1509 ) 07a04de
SharedUnionFieldsDeep: Ensure it doesn't distribute processed union over mapped type (#1509) 07a04deTypedArray: Add Float16Array (#1495) ca27cceWritable: Fix behavior with index signatures (#1470) 48ddc4bJsonify: Fix optional properties leaking undefined into the key set (#1484) 5339fb3IsLiteral*: Fix behavior with unions (#1482) 3425142StringToArray ( #1457 ) b773e84
StringToArray (#1457) b773e84StringLength (#1457) b773e84StringToNumber (#1446) 2a14c2dExtractExactly (#1445) 26f3c99LastArrayElement: Fix handling of tuples with optional elements (#1461) 8e5c69aSchema: Fix incorrect handling of any and unknown fields (#1459) 82ccfc3StringRepeat: Fix behavior with extremely large/small counts (#1455) 441ac27UnwrapRequired ( #1410 ) 3bfee8e
ExtendsStrict: Add distributiveUnions, strictNever & strictAny options (#1408) 9ea810bTupleOf: Improve implementation (#1441) 391e1bbRemovePrefix: Fix: Remove incorrect optimization and always fallback to string for non-literal prefixes (#1438) 9f35398DelimiterCase: Fix behavior with non-single character delimiters (#1424) 9b36590RemovePrefix: Fix any prefix behavior in non-strict mode (#1423) c49cb75DelimiterCase: Fix behavior with union delimiters (#1422) 96172c0ApplyDefaultOptions: Fix behavior with generic instantiations & any values (#1411) c46020dApplyDefaultOptions: Fix behavior with explicit undefined (#1407) 60bfd3fNonNullableDeep ( #1401 ) 1e8bd10
splitOnPunctuation option to CamelCase / PascalCase / KebabCase / SnakeCase (#1394) 852d016CamelCase: Add preserveLeadingUnderscores option (#1404) 5ca6564TsConfigJson: Add TypeScript 6.0 fields (#1406) ac4861dUnionToTuple: Fix behavior with large unions (#1405) 651f7eaExcludeExactly ( #1349 ) 0f923d0
Optional (#1374) 9b52980ExcludeExactly (#1349) 0f923d0ArrayLength (#1344) 59bd056UnionMember (#1368) 878b6dfSomeExtend (#1380) bbce298AndAll (#1383) 94aa3f8OrAll (#1378) 4c42d89UnionToTuple: Fix behavior when a union member is a supertype of another (#1349) 0f923d0ConditionalPickDeep: Fix returning {} instead of never when no keys match (#1360) 6af847aConditionalPick: Fix returning {} instead of never when no keys match (#1359) 3995003GreaterThan / LessThan / GreaterThanOrEqual / LessThanOrEqual: Fix behavior with the number type (#1363) cfea505PackageJson : Use LiteralUnion for engines field ( #1354 ) fc9e2bb
PackageJson: Use LiteralUnion for engines field (#1354) fc9e2bbIsUnion: Fix behavior when the entire union extends all individual members (#1353) b0321a5Paths: Fix leavesOnly behavior with never leaves (#1350) 2c34128Paths: Fix behavior with WeakMaps / WeakSets (#1348) ac3b50ePaths: Fix behavior with tuples containing optional elements with a rest element (#1346) 7c82a21Merge : Fix idempotency, so Merge<A, A> returns A ( #1336 ) 99e35a2
SimplifyDeep : Fix behavior with arrays ( #1337 ) a2a180d
MergeDeep : Remove extra undefined from optional properties ( #1319 ) a6af489
UnwrapPartial ( #1296 ) 99b0b07
PackageJson : Fix key type for DependencyOverrides ( #1307 ) 0430f56
PackageJson: Add overrides (#1287) 8beaa89
PackageJson: Add overrides (#1287) 8beaa89IsEqual: Fix generic inference (#1306) f7b2667ConditionalPickDeep / SimplifyDeep: Prevent mapping over built-ins (#1293) f14a75aArraySlice / StringSlice: Fix behavior with unions (#1291) 133258bhttps://github.com/sindresorhus/type-fest/compare/v5.2.0...v5.3.0
Add `ExclusifyUnion` type (#1278) 2b906fe
ExclusifyUnion type (#1278) 2b906feArrayElement type (#1270) 2afaa40CamelCase: Add splitOnNumbers option (#1290) ce2d244PackageJson: Add devEngines type (#1286) 3b4ad2eExcludeRestElement: Fix generic assignability with arrays (#1274) 12ef5b2GreaterThanOrEqual / LessThan: Fix behavior with operands like N and N | N + >0 (#1280) b2caa3fhttps://github.com/sindresorhus/type-fest/compare/v5.1.0...v5.2.0
ReadonlyTuple: Deprecate in favor of TupleOf (#1256) af4bebc
TupleOf (#1247) 7fb2f75Xor (#1254) ad04bc5SplitOnRestElement (#1166) 34b8fadExtractRestElement (#1166) 34b8fadExcludeRestElement (#1166) 34b8fadReadonlyTuple: Deprecate in favor of TupleOf (#1256) af4bebcTsConfigJson: Add missing lib enum values (#1263) 72f491fTsConfigJson: Add rewriteRelativeImportExtensions (#1262) 7d011cePartialDeep: Fix behavior with functions containing multiple call signatures (#1259) 3bd9de6IsEqual: Fix behaviour when instantiated with never and unknown (#1251) 785549fFixedLengthArray: Fix element type (#1246) ee29ef7is-equal: Fix handling with intersecting wrapped types (#1231) 5af60a1https://github.com/sindresorhus/type-fest/compare/v5.0.1...v5.1.0
https://github.com/sindresorhus/type-fest/compare/v5.0.0...v5.0.1
https://github.com/sindresorhus/type-fest/compare/v5.0.0...v5.0.1
Deprecate If* types in favor of a single `If` 4c2151a
type-fest requires strict: true in your tsconfig.StringKeyOf: Rename to KeyAsString e492c9cArrayTail: Enable preserveReadonly by default and remove the option b34b1d8CamelCase / CamelCasedProperties / CamelCasedPropertiesDeep / PascalCase / PascalCasedProperties / PascalCasedPropertiesDeep: Disable preserveConsecutiveUppercase by default 8226c1b
PartialDeep: Disable allowUndefinedInNonTupleArrays by default b3c4524Split: Enable strictLiteralChecks by default 544a846Paths: Default maxRecursionDepth 5 (was 10) 2ab5decObservableLike: Move to sub-export 2a1072eIf* types in favor of a single If 4c2151aAlphanumeric — Single alphanumeric character (A–Z, a–z, 0–9). 484e030AllExtend — Evaluates to true if every element of a tuple/array extends U. c8c6d55ConditionalSimplify — Simplifies a type’s unions/intersections with opt-in controls. b7a4771ConditionalSimplifyDeep — Deep version of ConditionalSimplify that recurses into objects. b7a4771DigitCharacter — Single ASCII digit character (0–9). 484e030ExcludeStrict — Non-distributive, stricter variant of Exclude<T, U>. e6f62a2ExtendsStrict — Non-distributive A extends B check. d71242aExtractStrict — Non-distributive, stricter variant of Extract<T, U>. 98d24faIsLowercase — Evaluates to true if a string literal is all lowercase. afe132cIsNullable — Evaluates to true if T includes null. 5067e25IsOptional — Evaluates to true if T includes undefined. 5067e25IsOptionalKeyOf — Evaluates to true if property K of T is optional. 93728b5IsReadonlyKeyOf — Evaluates to true if property K of T is readonly. 93728b5IsRequiredKeyOf — Evaluates to true if property K of T is required. 93728b5IsUnion — Evaluates to true if T is a union type. b3d92edIsUndefined — Evaluates to true if the type is exactly undefined. f7bc576IsUppercase — Evaluates to true if a string literal is all uppercase. afe132cLowercaseLetter — Single lowercase Latin letter (a–z). 484e030RemovePrefix — Removes a specified prefix from a string literal. 18a1c04UppercaseLetter — Single uppercase Latin letter (A–Z). 484e030Jsonify: Handle unknown as JsonValue 642bb13SetRequired / SetOptional / SetReadonly: Handle functions with properties a5e45d4Schema: Preserve arrays/remove extraneous unions 8a96def; drop undefined for recurseIntoArrays 1cb955bReadonlyKeysOf / WritableKeysOf: Add object constraint a6efbe0TsConfigJson: Add TypeScript 5.9 fields d2bda94Or: Fix with boolean, never, any 42d6106And: Fix with boolean, never, any b38ac60IsStringLiteral: Fix uncollapsed unions, and tagged types eb37799 / d1b35c7Paths: Fix behavior with index signatures 9926e5dConditionalKeys: Fix behavior with arrays and unions 4d7cc50RequiredDeep: Fix with undefined bfcdbc4Split: Fix template strings ending with interpolation 853b881ArrayTail: Fix fix non-tuple arrays f3aabd8UnionMin and UnionMax d52d5e7Huge thanks to all the contributors to this release, especially @som-sm 🙌
https://github.com/sindresorhus/type-fest/compare/v4.41.0...v5.0.0
Add `SetNonNullableDeep` type (#1117) b9606e7
SetNonNullableDeep type (#1117) b9606e7LessThan / GreaterThan / GreaterThanOrEqual: Fix behaviour with unions (#1116) afd809aRequireAllOrNone / RequireAtLeastOne / RequireExactlyOne / RequireOneOrNone: Fix behaviour with any and never (#1113) 8c154e9https://github.com/sindresorhus/type-fest/compare/v4.40.1...v4.41.0
PartialDeep: Fix behaviour with functions containing properties (#1108) 86a3a69
PartialDeep: Fix behaviour with functions containing properties (#1108) 86a3a69CamelCasedPropertiesDeep / DelimiterCasedPropertiesDeep / KebabCasedPropertiesDeep / PascalCasedPropertiesDeep / SnakeCasedPropertiesDeep: Fix behaviour when property value is unknown (#1112) cfcf9echttps://github.com/sindresorhus/type-fest/compare/v4.40.0...v4.40.1
Add `NonEmptyString` type (#1103) 19a9c37
NonEmptyString type (#1103) 19a9c37UnknownMap type (#1106) b4ace2dUnknownSet type (#1106) b4ace2dIsFloat / IsInteger: Fix instantiations with numbers represented using exponential notation (#1101) 21a92f6https://github.com/sindresorhus/type-fest/compare/v4.39.1...v4.40.0
OptionalKeysOf / WritableKeysOf: Fix generic assignability with keyof T (#1098) 1b41ed3
OptionalKeysOf / WritableKeysOf: Fix generic assignability with keyof T (#1098) 1b41ed3https://github.com/sindresorhus/type-fest/compare/v4.39.0...v4.39.1
ArrayTail: Add `preserveReadonly` option (#1091) 544271e
ArrayTail: Add preserveReadonly option (#1091) 544271ePartialDeep : Fix behaviour when strictNullChecks is disabled (#1096) 7536baeOptionalKeysOf / RequiredKeysOf: Fix instantiations with unions and arrays (#1089) e1ac7b2WritableKeysOf / ReadonlyKeysOf: Fix behavior with unions and optional properties (#1088) bbf9137https://github.com/sindresorhus/type-fest/compare/v4.38.0...v4.39.0
AsyncReturnType: Add support for PromiseLike (#1082) 72ccde9
AsyncReturnType: Add support for PromiseLike (#1082) 72ccde9DelimiterCase / SnakeCase / ScreamingSnakeCase / KebabCase: Fix instantiations containing punctuations (#1080) 063e28dDelimiterCase: Pass Options generic to all related types (#1078) 1974944CamelCasedPropertiesDeep: Make nested array objects respect the options (#1077) c11c9cahttps://github.com/sindresorhus/type-fest/compare/v4.37.0...v4.38.0
Sum: Add negative return value support (#1068) af5bfb7
Sum: Add negative return value support (#1068) af5bfb7Subtract: Add negative return value support (#1061) 2b85ae2Split: Add strictLiteralChecks option (#1067) cc93f85Split: Fix instantiations with unions (#1067) cc93f85Replace: Fix instantiations with unions (#1065) a733698DelimiterCase / SnakeCase / ScreamingSnakeCase / KebabCase: Fix default value for splitOnNumbers option (#1073) e462e72https://github.com/sindresorhus/type-fest/compare/v4.36.0...v4.37.0
TsConfigJson: Add TypeScript 5.8 fields (#1064) 918156a
TsConfigJson: Add TypeScript 5.8 fields (#1064) 918156aReplace: Add support for generating longer strings (#1060) 3c03a0dDelimiterCase: Internal improvements (#930) a463c30https://github.com/sindresorhus/type-fest/compare/v4.35.0...v4.36.0
Add `TupleToObject` type (#1055) c8149ec
TupleToObject type (#1055) c8149ecPaths: Add depth option (#1058) 2633e5bhttps://github.com/sindresorhus/type-fest/compare/v4.34.1...v4.35.0
OmitDeep: Fix import statement (#1052) e5b66a4
OmitDeep: Fix import statement (#1052) e5b66a4https://github.com/sindresorhus/type-fest/compare/v4.34.0...v4.34.1
Add `AllUnionFields` type (#997) 9aba4c3
AllUnionFields type (#997) 9aba4c3Paths: Add leavesOnly option (#1050) 7dfb307OmitDeep: Fix removal of multiple paths within arrays (#1049) fa6e31bhttps://github.com/sindresorhus/type-fest/compare/v4.33.0...v4.34.0
StringRepeat: Add support for generating longer strings & fix instantiations with unions (#1046) fbccaab
StringRepeat: Add support for generating longer strings & fix instantiations with unions (#1046) fbccaabSplit: Add support for longer strings (#1042) 49605b9Get: Optimize performance (#1031) cfb5947KeysOfUnion: Fix assignability with keyof (#1009) 4789c7cIsStringLiteral: Fix instantiations with infinite string types (#1044) e7800afSetRequiredDeep: Fix handling of unions in nested keys (#1037) bf5ce3cStringSlice: Fix return type when passing in non-literal (#1036) 979eccfSum/Subtract: Fix instantiations with unions (#1034) 69bfd51https://github.com/sindresorhus/type-fest/compare/v4.32.0...v4.33.0
`SetRequiredDeep` (#939) 3d54627
IsTuple (#1024) 1e0872dSetRequiredDeep (#939) 3d54627PartialDeep: Add allowUndefinedInNonTupleArrays option (#1019) 278df80SetRequired: Fix support for removal of optional modifiers from tuples (#1030) c897aadhttps://github.com/sindresorhus/type-fest/compare/v4.31.0...v4.32.0
SetFieldType: Add option to preserve property modifiers (#1017) 59517cb
SetFieldType: Add option to preserve property modifiers (#1017) 59517cbIsEqual: Fix identity issue (#1012) 591700aSetOptional: Fix instantiations with index signatures (#1014) cb269ffSetRequired: Fix instantiations with index signatures (#1014) cb269ffSetReadonly: Fix instantiations with index signatures (#1014) cb269ffhttps://github.com/sindresorhus/type-fest/compare/v4.30.2...v4.31.0
Fix missing export (#1011) 527d600
SetOptional/SetRequired/SetReadonly: Fix when the second argument is any (#1007) fdbcb11SetOptional: Fix when instantiated with unions (#1007) fdbcb11https://github.com/sindresorhus/type-fest/compare/v4.30.1...v4.30.2
Arrayable: Make it more usable by removing readonly (#1003) a128f69
Arrayable: Make it more usable by removing readonly (#1003) a128f69https://github.com/sindresorhus/type-fest/compare/v4.30.0...v4.30.1
Add `SharedUnionFields` type (#994) a716c29
SharedUnionFields type (#994) a716c29ArrayTail: Fix support for optional parameters (#977) f6b1387https://github.com/sindresorhus/type-fest/compare/v4.29.1...v4.30.0
IsAny: Fix circular constraint error on TypeScript 5.4+ (#993) 32d94dd
IsAny: Fix circular constraint error on TypeScript 5.4+ (#993) 32d94ddhttps://github.com/sindresorhus/type-fest/compare/v4.29.0...v4.29.1
Add `IntClosedRange` type (#992) d7b692b
IntClosedRange type (#992) d7b692bSchema: Add recurseIntoArrays option (#960) fbbb8bahttps://github.com/sindresorhus/type-fest/compare/v4.28.1...v4.29.0
SharedUnionFieldsDeep: Fix support for optional fields (#988) 4b49b93
SharedUnionFieldsDeep: Fix support for optional fields (#988) 4b49b93https://github.com/sindresorhus/type-fest/compare/v4.28.0...v4.28.1
TsConfigJson: Add TypeScript 5.7 fields (#987) 9d6fff3
TsConfigJson: Add TypeScript 5.7 fields (#987) 9d6fff3https://github.com/sindresorhus/type-fest/compare/v4.27.1...v4.28.0
SharedUnionFieldsDeep: Fix propagation for non union root types (#984) f215f9f
SharedUnionFieldsDeep: Fix propagation for non union root types (#984) f215f9fArraySlice: Fix support for union input (#986) 0efbae3https://github.com/sindresorhus/type-fest/compare/v4.27.0...v4.27.1
Add `Words` type (#975) 13c0c83
Words type (#975) 13c0c83Get: Fix handling of paths with number template literal (#968) b93f54aTsConfigJson: Add noCheck to compilerOptions (#981) a470913https://github.com/sindresorhus/type-fest/compare/v4.26.1...v4.27.0
Exact: Fix usage with recursive types and unions (#949) 91f6d39
Exact: Fix usage with recursive types and unions (#949) 91f6d39https://github.com/sindresorhus/type-fest/compare/v4.26.0...v4.26.1
Add `UnionToTuple` type (#945) 1f4f7a1
UnionToTuple type (#945) 1f4f7a1https://github.com/sindresorhus/type-fest/compare/v4.25.0...v4.26.0
Add StringRepeat type (#938) a83e87e
StringRepeat type (#938) a83e87eArrayable type #270 (#935) 9aabcb9https://github.com/sindresorhus/type-fest/compare/v4.24.0...v4.25.0
Path: Add bracketNotation option (#926) 3b15a94
Path: Add bracketNotation option (#926) 3b15a94https://github.com/sindresorhus/type-fest/compare/v4.23.0...v4.24.0
Paths: Add maxRecursionDepth option (#920) 052e887
Paths: Add maxRecursionDepth option (#920) 052e887https://github.com/sindresorhus/type-fest/compare/v4.22.1...v4.23.0
Fix missing exported internal types (#918) 4b74444
https://github.com/sindresorhus/type-fest/compare/v4.22.0...v4.22.1
`FindGlobalType` (#908) 0086cd6
ArrayTail (#913) 128b21eNonEmptyTuple (#915) bb57638FindGlobalType (#908) 0086cd6FindGlobalInstanceType (#908) 0086cd6RequireX types' second parameter is optional (#907) fee4e04StructuredCloneable: Include web-specific types when available (#908) 0086cd6Exact: Fix type when class is present (#911) bf85819https://github.com/sindresorhus/type-fest/compare/v4.21.0...v4.22.0
`StructuredCloneable` (#897) 737550b
StructuredCloneable (#897) 737550bJsonify: Convert undefined to null in union element of array (#901) 60c1024Exact: Fix support for Date in union (#902) d89a709CamelCasedPropertiesDeep: Fix handling of non-recursive types inside target type (#890) 476024dhttps://github.com/sindresorhus/type-fest/compare/v4.20.1...v4.21.0
Schema: Fix handling of arrays (#887) c570ec2
Schema: Fix handling of arrays (#887) c570ec2Paths: Prevent infinite recursion (#891) 7d4e875https://github.com/sindresorhus/type-fest/compare/v4.20.0...v4.20.1
SimplifyDeep: Support array (#888) a6ab051
SimplifyDeep: Support array (#888) a6ab051IsLiteral: Return false for tagged types (#886) 587380chttps://github.com/sindresorhus/type-fest/compare/v4.19.0...v4.20.0
Add `SimplifyDeep` type (#882) 3a04fcf
SimplifyDeep type (#882) 3a04fcfhttps://github.com/sindresorhus/type-fest/compare/v4.18.3...v4.19.0
ConditionalKeys: Fix filtering out never type (#881) 863511d
ConditionalKeys: Fix filtering out never type (#881) 863511dhttps://github.com/sindresorhus/type-fest/compare/v4.18.2...v4.18.3
CamelCasedPropertiesDeep: Fix tuple being incorrectly turned into array (#818) 4e7bb18
CamelCasedPropertiesDeep: Fix tuple being incorrectly turned into array (#818) 4e7bb18https://github.com/sindresorhus/type-fest/compare/v4.18.1...v4.18.2
Fix missing exports (#876) ed860e9
https://github.com/sindresorhus/type-fest/compare/v4.18.0...v4.18.1
Opaque: Mark as deprecated (#867) ef7b580
Zero: Fix missing export (#870) 91a2b1e
IsNull d639574Zero: Fix missing export (#870) 91a2b1ehttps://github.com/sindresorhus/type-fest/compare/v4.16.0...v4.17.0
One column per quarter.