Rule coverage gap analysis
Which upstream exports have a lint rule, and when is a migration unsafe? The tables below account for all 427 public names across the pinned packages and entry points. Each covered row links to the rule's supported patterns. Migration identifies a deprecated source name that a rule replaces. Excluded gives the reason a direct preference rule would be unsound or add little value.
The inventory uses the published declarations, including star re-exports. It counts a name separately in each public module and distinguishes the objectKeys function from the ObjectKeys type. Internal upstream helpers and ambient declarations do not add root exports. type-fest 6.0.3 Β· ts-extras 3.0.0
A covered export guarantees only the matcher described on its rule page. For example, the merge rule recognizes a particular intersection, while the tuple and key rules check specific operands and modifiers. Imported helpers in the wrong scope and structurally similar types with different fallback behavior require separate treatment. Rules introduced for the newer APIs check the package version resolved from the consumer file. They support type-fest 6 and ts-extras 2 or 3.
Runtime exports from ts-extrasβ
The 45 runtime helpers include 33 present in v1.0. Later v1 releases added objectAssign, objectUpdate, and assert. Version 2 added nine more helpers, and version 3 retains all 45. The two filter-specific rules are listed with the same helpers they refine. Historical catalog slots for arrayFind, arrayFindLast, and arrayFindLastIndex are reserved IDs. No corresponding functions exist in this release.
Type exports from ts-extrasβ
| Export | Decision | Rule or reason |
|---|---|---|
ObjectKeys | Excluded | Distributes over object unions, stringifies numeric keys, and selects element keys for arrays, tuples, typed arrays, and buffers. A plain keyof includes different keys. |
Root type exports from type-festβ
The root entry point exports 378 types. Options interfaces have property names that also occur on unrelated objects, so the presence of those properties cannot identify the helper being configured.
| Export | Decision | Rule or reason |
|---|---|---|
Absolute | Covered | prefer-type-fest-absolute |
AbstractClass | Excluded | A construct signature alone omits the required prototype relationship. Adding that requirement would reject constructors accepted by the original type. |
AbstractConstructor | Covered | prefer-type-fest-abstract-constructor |
AllExtend | Excluded | Checking a union of tuple members is different from checking every element or any element, particularly for empty tuples and never. |
AllExtendOptions | Excluded | This is the options contract for an upstream operation. A local object with strictNever can configure unrelated code. |
AllUnionFields | Excluded | Mapping over a union changes how common, optional, and member-specific properties are collected. Keys alone do not identify the intended value types. |
Alphanumeric | Excluded | A hand-written alphabet can intentionally select a subset of ASCII. Matching an alias name cannot establish the exact character set. |
And | Covered | prefer-type-fest-and |
AndAll | Covered | prefer-type-fest-and-all |
AnyAsyncFunction | Covered | prefer-type-fest-function |
AnyFunction | Covered | prefer-type-fest-function |
ApplyDefaultOptions | Excluded | A plain intersection of defaults and overrides loses the distinction between optional keys, explicit undefined values, and required options. |
Arrayable | Covered | prefer-type-fest-arrayable |
ArrayAt | Excluded | Indexed access does not model out-of-range indices, negative offsets, and possibly empty arrays in the same way. |
ArrayChunk | Excluded | Recursive tuple algorithms differ in whether open arrays, optional elements, unequal lengths, and readonly inputs widen the result. |
ArrayElement | Covered | prefer-type-fest-array-element |
ArrayFlat | Excluded | A tuple spread alone does not encode the requested flattening depth or the behavior of open arrays. |
ArrayGroupBy | Excluded | Mapping an array element union by a property does not guarantee the same key aliases, duplicate-key behavior, or tuple information. |
ArrayIndices | Excluded | Tuple string keys, numeric indices, and open array index domains differ. A plain Exclude over keyof a tuple can produce string keys. |
ArrayLength | Covered | prefer-type-fest-array-length |
ArrayReverse | Excluded | Tuple recursion has distinct results for optional items, readonly inputs, open arrays, and variadic tails. |
ArraySlice | Excluded | Tuple recursion has distinct results for optional items, readonly inputs, open arrays, and variadic tails. |
ArraySplice | Excluded | Tuple recursion has distinct results for optional items, readonly inputs, open arrays, and variadic tails. |
ArrayTail | Excluded | A tuple-rest conditional must agree on empty tuples, optional tails, readonly results, and open arrays. |
ArrayToRecord | Excluded | Mapping an array element union by a property does not guarantee the same key aliases, duplicate-key behavior, or tuple information. |
ArrayTrim | Excluded | Tuple trimming needs an explicit match policy and separate rules for optional elements, rest elements, and open arrays. |
ArrayTrimEnd | Excluded | Tuple trimming needs an explicit match policy and separate rules for optional elements, rest elements, and open arrays. |
ArrayTrimOptions | Excluded | This is the options contract for an upstream operation. A local object with condition can configure unrelated code. |
ArrayTrimStart | Excluded | Tuple trimming needs an explicit match policy and separate rules for optional elements, rest elements, and open arrays. |
ArrayUnique | Excluded | Recursive tuple algorithms differ in whether open arrays, optional elements, unequal lengths, and readonly inputs widen the result. |
ArrayValues | Covered | prefer-type-fest-array-values |
ArrayZip | Excluded | Recursive tuple algorithms differ in whether open arrays, optional elements, unequal lengths, and readonly inputs widen the result. |
AsciiPunctuationCharacter | Excluded | Character tables encode the chosen alphabet. A project's punctuation or whitespace set can intentionally differ. |
AsExtendable | Excluded | This identity helper makes a structural type usable in a heritage clause. An arbitrary identity alias carries no such intent. |
AsyncFunction | Covered | prefer-type-fest-function |
Asyncify | Covered | prefer-type-fest-asyncify |
AsyncReturnType | Covered | prefer-type-fest-async-return-type |
CamelCase | Excluded | Word boundaries involving digits, punctuation, and consecutive capitals affect the output. A string case conversion can intentionally use a different tokenizer. |
CamelCasedProperties | Excluded | Remapping property names also needs a policy for word boundaries and non-string keys. |
CamelCasedPropertiesDeep | Excluded | Deep key renaming must define where to stop recursion, how arrays are treated, and which property names change. |
CamelCaseOptions | Excluded | This is the options contract for an upstream operation. A local object with splitOnNumbers, splitOnPunctuation, preserveConsecutiveUppercase can configure unrelated code. |
CamelCaseString | Excluded | Recognizing an already-cased string and converting a string to that case have different contracts. A local template literal does not identify which operation is intended. |
Class | Excluded | A construct signature alone omits the required prototype relationship. Adding that requirement would reject constructors accepted by the original type. |
CollapseLiterals | Excluded | Literal collapsing and extraction depend on distribution over the union and on how a widened primitive absorbs its literals. |
ConditionalExcept | Covered | prefer-type-fest-conditional-except |
ConditionalKeys | Covered | prefer-type-fest-conditional-keys |
ConditionalKeysOptions | Excluded | This is the options contract for an upstream operation. A local object with strict can configure unrelated code. |
ConditionalPick | Covered | prefer-type-fest-conditional-pick |
ConditionalPickDeep | Covered | prefer-type-fest-conditional-pick-deep |
ConditionalPickDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with condition can configure unrelated code. |
ConditionalSimplify | Excluded | Expansion for editor display can affect assignability and inference. An anonymous mapped type does not specify which types should be preserved. |
ConditionalSimplifyDeep | Excluded | Expansion for editor display can affect assignability and inference. An anonymous mapped type does not specify which types should be preserved. |
ConsistsOnlyOf | Excluded | Template-literal recursions differ on empty strings, widened strings, and mixtures of literal and nonliteral characters. |
Constructor | Covered | prefer-type-fest-constructor |
Curry | Excluded | Local function transformations choose their own handling of optional arguments, rest parameters, overloads, and inference. |
DefaultsFor | Excluded | A plain intersection of defaults and overrides loses the distinction between optional keys, explicit undefined values, and required options. |
DelimiterCase | Excluded | Word boundaries involving digits, punctuation, and consecutive capitals affect the output. A string case conversion can intentionally use a different tokenizer. |
DelimiterCasedProperties | Excluded | Remapping property names also needs a policy for word boundaries and non-string keys. |
DelimiterCasedPropertiesDeep | Excluded | Deep key renaming must define where to stop recursion, how arrays are treated, and which property names change. |
DigitCharacter | Excluded | A hand-written alphabet can intentionally select a subset of ASCII. Matching an alias name cannot establish the exact character set. |
DistributedOmit | Covered | prefer-type-fest-distributed-omit |
DistributedPick | Covered | prefer-type-fest-distributed-pick |
EmptyArray | Covered | prefer-type-fest-empty-array. Matches the dedicated local alias for a readonly empty tuple. |
EmptyObject | Excluded | The upstream unique-symbol brand has different assignability from Record<string, never>, an index signature, or the native empty object type. |
Entries | Covered | prefer-type-fest-entries |
Entry | Covered | prefer-type-fest-entry |
Exact | Excluded | Excess property checking at an assignment is contextual. A local completeness check can admit objects that the upstream constraint rejects. |
Except | Covered | prefer-type-fest-except |
ExceptOptions | Excluded | This is the options contract for an upstream operation. A local object with requireExactProps can configure unrelated code. |
ExcludeExactly | Excluded | A built-in Extract or Exclude can accept values the strict or exact variant rejects. Selecting that stronger contract requires caller intent. |
ExcludeRestElement | Excluded | A variadic tuple can have fixed elements on both sides of its rest. A simple infer Rest does not describe which components to keep. |
ExcludeStrict | Excluded | A built-in Extract or Exclude can accept values the strict or exact variant rejects. Selecting that stronger contract requires caller intent. |
ExcludeValues | Excluded | Filtering value unions and removing keys of type never are distinct decisions. A conditional over an indexed access can distribute differently. |
ExclusifyUnion | Excluded | Adding optional never properties is a deliberate restriction on assignments between union members. An ordinary union expresses no such restriction. |
ExtendsStrict | Excluded | Distribution over a union and the treatment of any and never depend on options. An ordinary extends conditional carries no such policy. |
ExtendsStrictOptions | Excluded | This is the options contract for an upstream operation. A local object with distributiveUnions, strictNever, strictAny can configure unrelated code. |
ExtractExactly | Excluded | A built-in Extract or Exclude can accept values the strict or exact variant rejects. Selecting that stronger contract requires caller intent. |
ExtractLiterals | Excluded | Literal collapsing and extraction depend on distribution over the union and on how a widened primitive absorbs its literals. |
ExtractRestElement | Covered | prefer-type-fest-extract-rest-element |
ExtractStrict | Excluded | A built-in Extract or Exclude can accept values the strict or exact variant rejects. Selecting that stronger contract requires caller intent. |
ExtractValues | Excluded | Filtering value unions and removing keys of type never are distinct decisions. A conditional over an indexed access can distribute differently. |
Falsy | Covered | prefer-type-fest-falsy |
FindGlobalInstanceType | Excluded | Which globals exist depends on the selected DOM, Node, or other ambient libraries. A similarly named local declaration cannot establish that binding. |
FindGlobalType | Excluded | Which globals exist depends on the selected DOM, Node, or other ambient libraries. A similarly named local declaration cannot establish that binding. |
Finite | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
FirstArrayElement | Excluded | For an array with no guaranteed first element the helper includes undefined. Indexed access at zero alone does not encode that possibility. |
FixedLengthArray | Excluded | Removing array methods that change length and preserving indexed members expresses a stronger contract than annotating length alone. |
Flavor | Excluded | Tag names, metadata, and brand visibility depend on the originating brand. A structural field or plain intersection cannot establish that contract. |
Float | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
FromEntries | Excluded | A mapped keyβvalue union does not by itself model entry order, duplicate keys, or the fallback for arrays of unknown entries. |
FunctionParameters | Excluded | Inference from an overloaded or generic signature can select its last overload. A local Parameters or ReturnType wrapper does not establish equivalent overload handling. |
Get | Excluded | Property paths differ in bracket notation, index signatures, recursion depth, optional properties, and missing-key fallbacks. |
GetOptions | Excluded | This is the options contract for an upstream operation. A local object with strict can configure unrelated code. |
GetTagMetadata | Excluded | Reading a property does not prove that it is metadata for the specific upstream tag and its unique-symbol brand. |
GlobalThis | Excluded | The native typeof globalThis is explicit. Replacing it solely for its spelling adds an import to a standard platform type. |
GreaterThan | Excluded | Tuple arithmetic over positive integer literals does not cover negative numbers, infinities, or generic widened inputs. |
GreaterThanOrEqual | Excluded | Tuple arithmetic over positive integer literals does not cover negative numbers, infinities, or generic widened inputs. |
GuardedType | Covered | prefer-type-fest-guarded-type. Matches the exact conditional that infers the guarded type of a predicate. |
HasMultipleCallSignatures | Excluded | Inference from an overloaded or generic signature can select its last overload. A local Parameters or ReturnType wrapper does not establish equivalent overload handling. |
HasOptionalKeys | Covered | prefer-type-fest-has-optional-keys |
HasReadonlyKeys | Covered | prefer-type-fest-has-readonly-keys |
HasRequiredKeys | Covered | prefer-type-fest-has-required-keys |
HasWritableKeys | Covered | prefer-type-fest-has-writable-keys |
If | Covered | prefer-type-fest-if |
Includes | Excluded | Element extends Tuple[number] tests assignability to a union. Tuple membership can depend on the comparison and distribution settings. |
IncludesOptions | Excluded | This is the options contract for an upstream operation. A local object with distributeItem can configure unrelated code. |
IncompatibleKeys | Excluded | Numeric and string key aliases, index signatures, and union members affect key matching. A plain keyof intersection misses these cases. |
IndexOf | Excluded | Searching an uncertain array or matching a widened member has different outcomes from an exact finite tuple search. |
IndexOfOptions | Excluded | This is the options contract for an upstream operation. A local object with distributeItem can configure unrelated code. |
IndexTuple | Excluded | Mapping keyof a tuple also sees stringified indices and array members. It does not alone describe the intended numeric index tuple. |
IntClosedRange | Excluded | Range boundaries, step size, and handling invalid numeric arguments affect the resulting union. |
Integer | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
IntRange | Excluded | Range boundaries, step size, and handling invalid numeric arguments affect the resulting union. |
InvariantOf | Excluded | A private brand and the variance of its type parameter determine assignability. Different brands are deliberately incompatible. |
InvertRecord | Excluded | A reversed mapped type needs a policy for repeated values, key aliases, and values that cannot be property keys. |
IsAny | Covered | prefer-type-fest-is-any |
IsBooleanLiteral | Excluded | Distributive conditionals over a literal union can disagree for widened primitives, any, never, and branded values. |
IsEmptyObject | Excluded | It depends on TypeFest's branded EmptyObject. common T extends {} or keyof T extends never checks are not equivalent. |
IsEqual | Excluded | Mutual assignability alone fails to distinguish some readonly and overlapping types, while ad hoc equality predicates differ on any, never, intersections and overloads. |
IsFloat | Excluded | A string-pattern test for numeric sign or decimal syntax must also agree for infinities, widened numbers, and generic arguments. |
IsInteger | Excluded | A string-pattern test for numeric sign or decimal syntax must also agree for infinities, widened numbers, and generic arguments. |
IsLiteral | Excluded | Distributive conditionals over a literal union can disagree for widened primitives, any, never, and branded values. |
IsLowercase | Excluded | Partially known template literals require an uncertain boolean result. A direct comparison with a case-converted string can give a definite result. |
IsMutuallyAssignable | Covered | prefer-type-fest-is-mutually-assignable |
IsNegative | Excluded | A string-pattern test for numeric sign or decimal syntax must also agree for infinities, widened numbers, and generic arguments. |
IsNever | Covered | prefer-type-fest-is-never |
IsNull | Covered | prefer-type-fest-is-null |
IsNullable | Covered | prefer-type-fest-is-nullable |
IsNumberLike | Excluded | Numeric-string predicates differ about whitespace, signs, formats, branded strings, and the fallback for widened input. |
IsNumericLiteral | Excluded | A test that works for ordinary literals can differ for never, any, branded types, and partially known template literals. |
IsNumericString | Excluded | Numeric-string predicates differ about whitespace, signs, formats, branded strings, and the fallback for widened input. |
IsOptional | Excluded | Plain undefined-in-type tests differ for any, never, and unions. checking whether an object property may be omitted is a separate operation. |
IsOptionalKeyOf | Excluded | Key modifiers and their distribution over unions need explicit handling for any and missing keys. The higher-level key collection rules cover their own narrower compositions. |
IsPrimitive | Excluded | A naked extends check distributes across unions and has special behavior for any and never. Those choices determine this predicate's result. |
IsReadonlyArray | Excluded | A readonly array constraint also accepts mutable arrays. The upstream predicate distinguishes mutable arrays and returns false for never. |
IsReadonlyKeyOf | Excluded | Key modifiers and their distribution over unions need explicit handling for any and missing keys. The higher-level key collection rules cover their own narrower compositions. |
IsRecordLike | Excluded | An object constraint alone includes functions and arrays. The most useful match depends on the precise upstream record predicate. |
IsRequiredKeyOf | Excluded | Key modifiers and their distribution over unions need explicit handling for any and missing keys. The higher-level key collection rules cover their own narrower compositions. |
IsStringLiteral | Excluded | A test that works for ordinary literals can differ for never, any, branded types, and partially known template literals. |
IsSymbolLiteral | Excluded | Distributive conditionals over a literal union can disagree for widened primitives, any, never, and branded values. |
IsTemplateLiteral | Excluded | A template literal with a widened placeholder has different semantics from a finite string literal union or an unconstrained string. |
IsTuple | Covered | prefer-type-fest-is-tuple |
IsTupleOptions | Excluded | This is the options contract for an upstream operation. A local object with fixedLengthOnly can configure unrelated code. |
IsUndefined | Covered | prefer-type-fest-is-undefined |
IsUnion | Excluded | A test that works for ordinary literals can differ for never, any, branded types, and partially known template literals. |
IsUnionMember | Excluded | The contract tests whether the input is a whole union member. Assignability can accept a narrower type than any member. |
IsUnknown | Covered | prefer-type-fest-is-unknown |
IsUppercase | Excluded | Partially known template literals require an uncertain boolean result. A direct comparison with a case-converted string can give a definite result. |
IsWhitespace | Excluded | Template-literal recursions differ on empty strings, widened strings, and mixtures of literal and nonliteral characters. |
IsWritableKeyOf | Excluded | Key modifiers and their distribution over unions need explicit handling for any and missing keys. The higher-level key collection rules cover their own narrower compositions. |
IterableElement | Covered | prefer-type-fest-iterable-element |
Join | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
JoinUnion | Excluded | Union member order is a compiler detail. A local helper can require different ordering or preserve different literal information. |
JsonArray | Covered | prefer-type-fest-json-array |
Jsonifiable | Excluded | Projects vary in how a JSON boundary treats undefined, toJSON methods, dates, arrays, and non-serializable fields. |
JsonifiableArray | Excluded | A local serialization schema may allow different toJSON methods, undefined values, or array members. Structural resemblance does not identify its wire contract. |
JsonifiableObject | Excluded | A local serialization schema may allow different toJSON methods, undefined values, or array members. Structural resemblance does not identify its wire contract. |
JsonifiableValue | Excluded | A local serialization schema may allow different toJSON methods, undefined values, or array members. Structural resemblance does not identify its wire contract. |
Jsonify | Excluded | Projects vary in how a JSON boundary treats undefined, toJSON methods, dates, arrays, and non-serializable fields. |
JsonObject | Covered | prefer-type-fest-json-object |
JsonPointer | Excluded | Path grammars differ in escaping, separators, accepted indices, and fallback behavior. Similar string patterns do not establish the same grammar. |
JsonPointerOptions | Excluded | This is the options contract for an upstream operation. A local object with maxRecursionDepth can configure unrelated code. |
JsonPrimitive | Covered | prefer-type-fest-json-primitive |
JsonValue | Covered | prefer-type-fest-json-value |
KebabCase | Excluded | Word boundaries involving digits, punctuation, and consecutive capitals affect the output. A string case conversion can intentionally use a different tokenizer. |
KebabCasedProperties | Excluded | Remapping property names also needs a policy for word boundaries and non-string keys. |
KebabCasedPropertiesDeep | Excluded | Deep key renaming must define where to stop recursion, how arrays are treated, and which property names change. |
KebabCaseString | Excluded | Recognizing an already-cased string and converting a string to that case have different contracts. A local template literal does not identify which operation is intended. |
KeyAsString | Excluded | Numeric keys, symbols, and template-literal index signatures have different string conversions. Extracting only string keys loses numeric keys. |
KeysOfUnion | Covered | prefer-type-fest-keys-of-union |
LastArrayElement | Excluded | A last-element tuple inference needs explicit behavior for empty, optional, readonly, and open rest tails. |
LessThan | Covered | prefer-type-fest-less-than |
LessThanOrEqual | Covered | prefer-type-fest-less-than-or-equal |
LiteralList | Excluded | Validating that a tuple contains every literal in a union exactly once also requires checking duplicates, missing and extra members. A literal tuple alone guarantees none of these. |
LiteralToPrimitive | Excluded | A widening conditional can intentionally preserve branded primitives, handle symbols differently, or keep literal members of a union. |
LiteralToPrimitiveDeep | Excluded | A recursive mapped type needs explicit stopping conditions for arrays, tuples, built-ins, and readonly properties to preserve the transformation. |
LiteralUnion | Covered | prefer-type-fest-literal-union |
LowercaseLetter | Excluded | A hand-written alphabet can intentionally select a subset of ASCII. Matching an alias name cannot establish the exact character set. |
MapKey | Excluded | Upstream handles readonly maps, weak maps, and any explicitly. An infer from mutable Map alone misses these cases. |
MapValue | Excluded | Upstream handles readonly maps, weak maps, and any explicitly. An infer from mutable Map alone misses these cases. |
MatchingKey | Excluded | Numeric and string key aliases, index signatures, and union members affect key matching. A plain keyof intersection misses these cases. |
Merge | Covered | prefer-type-fest-merge |
MergeAll | Excluded | An intersection of a tuple's elements loses precedence when later members replace earlier keys. |
MergeDeep | Excluded | Deep merges choose precedence and distinct policies for tuple elements, open arrays, and nested object keys. |
MergeDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with arrayMergeMode, recurseIntoArrays can configure unrelated code. |
MergeExclusive | Covered | prefer-type-fest-merge-exclusive |
MinimumLengthArray | Covered | prefer-type-fest-minimum-length-array |
Modify | Excluded | Replacing a property is distinct from intersecting its old and new types. Recursion through indexed objects and arrays introduces additional policy choices. |
ModifyDeep | Excluded | Replacing a property is distinct from intersecting its old and new types. Recursion through indexed objects and arrays introduces additional policy choices. |
MultidimensionalArray | Excluded | Recursive array types choose the allowed leaf type, dimensions, and mutability. Nested array syntax permits several such interpretations. |
MultidimensionalReadonlyArray | Excluded | Recursive array types choose the allowed leaf type, dimensions, and mutability. Nested array syntax permits several such interpretations. |
Negate | Excluded | Numeric calculations must handle widened numbers, unions, infinities, and branded inputs. Recursion over a finite literal tuple covers only part of that domain. |
Negative | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
NegativeFloat | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
NegativeInfinity | Excluded | Using an extreme numeric literal in a public type can carry domain-specific range intent. A runtime Infinity value does not give a distinct literal type. |
NegativeInteger | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
NonEmptyObject | Excluded | Having known keys in a type does not guarantee that any optional key must be present on a particular value. |
NonEmptyString | Excluded | Upstream rejects any type that can include the empty string, including widened string. Excluding the empty literal from string still yields string. |
NonEmptyTuple | Covered | prefer-type-fest-non-empty-tuple |
NonNegative | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
NonNegativeInteger | Excluded | Numeric filters differ for widened numbers, numeric enums, branded values, and literal unions. A generic numeric alias cannot establish those policies. |
NonNegativeIntegerString | Excluded | Numeric-string predicates differ about whitespace, signs, formats, branded strings, and the fallback for widened input. |
NonNullableDeep | Covered | prefer-type-fest-non-nullable-deep |
NonNullableDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with keep can configure unrelated code. |
Not | Covered | prefer-type-fest-not |
ObjectEntries | Excluded | A union of keyof/value tuples can lose keyβvalue correlation, member-specific keys, or the distinction between optional values and absent properties. |
ObjectEntry | Excluded | A union of keyof/value tuples can lose keyβvalue correlation, member-specific keys, or the distinction between optional values and absent properties. |
ObjectMerge | Excluded | Handling index signatures separately from explicit keys makes the upstream object merge differ from an intersection. |
ObjectToTuple | Excluded | Union member order is a compiler detail. A local helper can require different ordering or preserve different literal information. |
ObjectToUnion | Excluded | A plain union of one-property Pick types handles arrays, index signatures, and unions differently from the upstream object-only transformation. |
OmitDeep | Excluded | Property paths differ in bracket notation, index signatures, recursion depth, optional properties, and missing-key fallbacks. |
OmitIndexSignature | Covered | prefer-type-fest-omit-index-signature |
Opaque | Migration | prefer-type-fest-tagged-brands recognizes this deprecated source spelling. |
Optional | Covered | prefer-type-fest-optional |
OptionalKeysOf | Covered | prefer-type-fest-optional-keys-of |
OptionalPaths | Excluded | Path grammars differ in escaping, separators, accepted indices, and fallback behavior. Similar string patterns do not establish the same grammar. |
OptionalPathsOptions | Excluded | This is the options contract for an upstream operation. A local object with maxRecursionDepth can configure unrelated code. |
Or | Covered | prefer-type-fest-or |
OrAll | Covered | prefer-type-fest-or-all |
OverloadParameters | Covered | prefer-type-fest-overload-parameters. Matches the supported local declaration that uses the imported Overloads helper. |
OverloadReturnType | Covered | prefer-type-fest-overload-return-type. Matches the supported local declaration that uses the imported Overloads helper. |
Overloads | Excluded | Inference from an overloaded or generic signature can select its last overload. A local Parameters or ReturnType wrapper does not establish equivalent overload handling. |
OverrideProperties | Excluded | A constrained override restricts the allowed keys of the source. A Merge-shaped intersection alone does not prove that the caller wanted this extra restriction. |
OverridePropertiesDeep | Excluded | Replacing a property is distinct from intersecting its old and new types. Recursion through indexed objects and arrays introduces additional policy choices. |
PackageJson | Excluded | A project file schema may intentionally accept private extensions or reject upstream fields. Its name cannot establish schema compatibility. |
ParsePath | Excluded | Path grammars differ in escaping, separators, accepted indices, and fallback behavior. Similar string patterns do not establish the same grammar. |
PartialApply | Excluded | A partial application or function pipeline carries argument positions, inference, and return-type flow. A list of function types alone does not specify those relationships. |
PartialDeep | Covered | prefer-type-fest-partial-deep |
PartialDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with recurseIntoArrays, allowUndefinedInNonTupleArrays, keep can configure unrelated code. |
PartialOnUndefined | Excluded | The optional modifier and an explicit undefined union carry different information under exactOptionalPropertyTypes. A shallow Partial or Required cannot recover that distinction. |
PartialOnUndefinedDeep | Excluded | A recursive mapped type needs explicit stopping conditions for arrays, tuples, built-ins, and readonly properties to preserve the transformation. |
PartialOnUndefinedDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with recurseIntoArrays can configure unrelated code. |
PascalCase | Excluded | Word boundaries involving digits, punctuation, and consecutive capitals affect the output. A string case conversion can intentionally use a different tokenizer. |
PascalCasedProperties | Excluded | Remapping property names also needs a policy for word boundaries and non-string keys. |
PascalCasedPropertiesDeep | Excluded | Deep key renaming must define where to stop recursion, how arrays are treated, and which property names change. |
PascalCaseString | Excluded | Recognizing an already-cased string and converting a string to that case have different contracts. A local template literal does not identify which operation is intended. |
Paths | Excluded | Property paths differ in bracket notation, index signatures, recursion depth, optional properties, and missing-key fallbacks. |
PathsOptions | Excluded | This is the options contract for an upstream operation. A local object with maxRecursionDepth, maxCircularDepth, bracketNotation can configure unrelated code. |
PickDeep | Excluded | Property paths differ in bracket notation, index signatures, recursion depth, optional properties, and missing-key fallbacks. |
PickIndexSignature | Covered | prefer-type-fest-pick-index-signature |
PickNonNever | Excluded | Filtering value unions and removing keys of type never are distinct decisions. A conditional over an indexed access can distribute differently. |
PickReadonly | Excluded | Readonly is a property modifier. Simple Pick by value type cannot detect it, and a non-distributive key calculation loses union members. |
PickWritable | Excluded | Readonly is a property modifier. Simple Pick by value type cannot detect it, and a non-distributive key calculation loses union members. |
Pipe | Excluded | A partial application or function pipeline carries argument positions, inference, and return-type flow. A list of function types alone does not specify those relationships. |
PositiveInfinity | Excluded | Using an extreme numeric literal in a public type can carry domain-specific range intent. A runtime Infinity value does not give a distinct literal type. |
Primitive | Covered | prefer-type-fest-primitive |
Promisable | Covered | prefer-type-fest-promisable |
PropertyValue | Excluded | Indexed access can reject a legitimate numeric key alias or drop a union member lacking the key. The intended fallback must be known. |
ReadonlyDate | Covered | prefer-type-fest-readonly-date. Matches the readonly view that omits the native date setters. |
ReadonlyDeep | Covered | prefer-type-fest-readonly-deep |
ReadonlyDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with keep can configure unrelated code. |
ReadonlyKeysOf | Covered | prefer-type-fest-readonly-keys-of |
RemovePrefix | Excluded | A literal match has an obvious remainder, but widened prefixes and suffixes need an explicit fallback. Project helpers can preserve, widen, or reject the input. |
RemovePrefixOptions | Excluded | This is the options contract for an upstream operation. A local object with strict can configure unrelated code. |
RemoveSuffix | Excluded | A literal match has an obvious remainder, but widened prefixes and suffixes need an explicit fallback. Project helpers can preserve, widen, or reject the input. |
RemoveSuffixOptions | Excluded | This is the options contract for an upstream operation. A local object with strict can configure unrelated code. |
RenameKeys | Excluded | A remapping policy must define collision handling, numeric key aliases, and the resulting optional and readonly modifiers. |
Replace | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
ReplaceOptions | Excluded | This is the options contract for an upstream operation. A local object with all can configure unrelated code. |
RequireAllOrNone | Covered | prefer-type-fest-require-all-or-none |
RequireArity | Excluded | Counting all function parameters also counts optional ones. Rest parameters and overloads complicate the minimum required arity. |
RequireAtLeastOne | Covered | prefer-type-fest-require-at-least-one |
RequiredDeep | Covered | prefer-type-fest-required-deep |
RequiredDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with keep can configure unrelated code. |
RequiredKeepUndefined | Excluded | The optional modifier and an explicit undefined union carry different information under exactOptionalPropertyTypes. A shallow Partial or Required cannot recover that distinction. |
RequiredKeysOf | Covered | prefer-type-fest-required-keys-of |
RequiredNonNullable | Covered | prefer-type-fest-required-non-nullable |
RequireExactlyOne | Covered | prefer-type-fest-require-exactly-one |
RequireNone | Covered | prefer-type-fest-require-none |
RequireOneOrNone | Covered | prefer-type-fest-require-one-or-none |
RouteParameters | Excluded | Path grammars differ in escaping, separators, accepted indices, and fallback behavior. Similar string patterns do not establish the same grammar. |
Schema | Covered | prefer-type-fest-schema |
SchemaOptions | Excluded | This is the options contract for an upstream operation. A local object with recurseIntoArrays can configure unrelated code. |
ScreamingSnakeCase | Excluded | Word boundaries involving digits, punctuation, and consecutive capitals affect the output. A string case conversion can intentionally use a different tokenizer. |
ScreamingSnakeCasedProperties | Excluded | Property-name transforms need explicit word-boundary and recursion policies. A mapped type calling Uppercase alone changes different keys. |
ScreamingSnakeCasedPropertiesDeep | Excluded | Property-name transforms need explicit word-boundary and recursion policies. A mapped type calling Uppercase alone changes different keys. |
ScreamingSnakeCaseString | Excluded | Recognizing an already-cased string and converting a string to that case have different contracts. A local template literal does not identify which operation is intended. |
SetFieldType | Excluded | Rewriting a key must preserve its optional and readonly modifiers according to an explicit option. A simple mapped replacement lacks that policy. |
SetFieldTypeOptions | Excluded | This is the options contract for an upstream operation. A local object with preservePropertyModifiers can configure unrelated code. |
SetNonNullable | Covered | prefer-type-fest-set-non-nullable |
SetNonNullableDeep | Excluded | A recursive mapped type needs explicit stopping conditions for arrays, tuples, built-ins, and readonly properties to preserve the transformation. |
SetNullable | Excluded | These utilities preserve modifiers on unselected keys. Union distribution, tuple positions, and the selected key set make a generic Partial, Required, or intersection insufficient. |
SetOptional | Covered | prefer-type-fest-set-optional |
SetOptionalDeep | Excluded | These utilities preserve modifiers on unselected keys. Union distribution, tuple positions, and the selected key set make a generic Partial, Required, or intersection insufficient. |
SetOptionalExcept | Excluded | These utilities preserve modifiers on unselected keys. Union distribution, tuple positions, and the selected key set make a generic Partial, Required, or intersection insufficient. |
SetParameterType | Excluded | Rebuilding a function with different parameters can drop its receiver, optional/rest parameter behavior, generic relationships, or overloads. |
SetProperty | Excluded | A shallow indexed assignment does not encode the upstream path grammar, numeric key aliases, or nested array updates. |
SetReadonly | Covered | prefer-type-fest-set-readonly |
SetRequired | Covered | prefer-type-fest-set-required |
SetRequiredDeep | Excluded | A recursive mapped type needs explicit stopping conditions for arrays, tuples, built-ins, and readonly properties to preserve the transformation. |
SetRequiredExcept | Excluded | These utilities preserve modifiers on unselected keys. Union distribution, tuple positions, and the selected key set make a generic Partial, Required, or intersection insufficient. |
SetRequiredNonNullable | Excluded | These utilities preserve modifiers on unselected keys. Union distribution, tuple positions, and the selected key set make a generic Partial, Required, or intersection insufficient. |
SetReturnType | Covered | prefer-type-fest-set-return-type |
SharedUnionFields | Excluded | Mapping over a union changes how common, optional, and member-specific properties are collected. Keys alone do not identify the intended value types. |
SharedUnionFieldsDeep | Excluded | Nested unions can retain or omit different keys. Array recursion is an explicit policy choice. |
SharedUnionFieldsDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with recurseIntoArrays can configure unrelated code. |
Simplify | Covered | prefer-type-fest-simplify |
SimplifyDeep | Excluded | Expansion for editor display can affect assignability and inference. An anonymous mapped type does not specify which types should be preserved. |
SimplifyUnion | Excluded | This mapped-and-indexed identity changes display and deferral for unresolved generic unions. A general union gives no reason to introduce the helper. |
SingleKeyObject | Excluded | A one-property literal does not guarantee that a generic input has precisely one key, especially for unions and index signatures. |
SnakeCase | Excluded | Word boundaries involving digits, punctuation, and consecutive capitals affect the output. A string case conversion can intentionally use a different tokenizer. |
SnakeCasedProperties | Excluded | Remapping property names also needs a policy for word boundaries and non-string keys. |
SnakeCasedPropertiesDeep | Excluded | Deep key renaming must define where to stop recursion, how arrays are treated, and which property names change. |
SnakeCaseString | Excluded | Recognizing an already-cased string and converting a string to that case have different contracts. A local template literal does not identify which operation is intended. |
SomeExtend | Excluded | Checking a union of tuple members is different from checking every element or any element, particularly for empty tuples and never. |
SomeExtendOptions | Excluded | This is the options contract for an upstream operation. A local object with strictNever can configure unrelated code. |
Split | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
SplitOnRestElement | Excluded | A variadic tuple can have fixed elements on both sides of its rest. A simple infer Rest does not describe which components to keep. |
SplitOnRestElementOptions | Excluded | This is the options contract for an upstream operation. A local object with preserveOptionalModifier can configure unrelated code. |
SplitOptions | Excluded | This is the options contract for an upstream operation. A local object with strict can configure unrelated code. |
Spread | Excluded | Object and array spread handle overwrite order and optional properties differently from an intersection. |
StartsWith | Excluded | The upstream predicate returns boolean for a broad string input. A conditional that checks just one template literal instead returns false. |
StrictEventTarget | Excluded | Typed event targets choose their own event map and listener overloads. A standard EventTarget use does not identify that contract. |
Stringified | Covered | prefer-type-fest-stringified |
StringLength | Covered | prefer-type-fest-string-length |
StringRepeat | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
StringReverse | Excluded | Template-literal operations have different fallbacks for branded, widened, empty, and union strings. Matching the literal happy path is insufficient. |
StringSlice | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
StringToArray | Excluded | Manual equivalents are recursive template-literal parsers with subtle any, never, literal, and non-literal rest-element behavior. Broad replacement would be noisy and unsafe. |
StringToArrayOptions | Excluded | This is the options contract for an upstream operation. A local object with strict can configure unrelated code. |
StringToBoolean | Excluded | The helper returns boolean for a broad string. Testing the two boolean literal strings alone misses that fallback. |
StringToNumber | Excluded | The obvious infer-number conditional helper is not equivalent to TypeFest's handling of string, any, infinities, and numeric strings without valid numeric literal counterparts. |
StructuredCloneable | Excluded | Structured cloning supports a specific set of platform objects and containers. A local serialization model may deliberately accept different values. |
SubsetOf | Covered | prefer-type-fest-subset-of |
SubstituteDeep | Excluded | Recursive transformations need explicit boundaries for containers, functions, object leaves, and cycles. A shallow indexed or mapped type cannot specify them. |
Subtract | Excluded | Tuple-length arithmetic over small positive literals does not cover negative numbers, widened arguments, or the upstream numeric limits. |
Sum | Excluded | Tuple-length arithmetic over small positive literals does not cover negative numbers, widened arguments, or the upstream numeric limits. |
Tag | Excluded | Tag names, metadata, and brand visibility depend on the originating brand. A structural field or plain intersection cannot establish that contract. |
Tagged | Covered | prefer-type-fest-tagged-brands |
TaggedUnion | Excluded | A shared literal discriminant alone cannot encode the intended payload mapping, optional fields, or whether additional properties are allowed. |
Thunkable | Covered | prefer-type-fest-thunkable |
ToString | Excluded | A template with an interpolated value can be a formatting policy for a restricted input set. Its syntax alone does not establish the upstream input domain. |
Trim | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
Truthy | Covered | prefer-type-fest-truthy |
TsConfigJson | Excluded | A project file schema may intentionally accept private extensions or reject upstream fields. Its name cannot establish schema compatibility. |
TupleLength | Excluded | TupleLength rejects open arrays, whereas indexing length returns number. The existing ArrayLength rule targets a different contract. |
TupleMax | Excluded | Numeric calculations must handle widened numbers, unions, infinities, and branded inputs. Recursion over a finite literal tuple covers only part of that domain. |
TupleMin | Excluded | Numeric calculations must handle widened numbers, unions, infinities, and branded inputs. Recursion over a finite literal tuple covers only part of that domain. |
TupleOf | Covered | prefer-type-fest-tuple-of |
TupleToEnum | Excluded | An enum-like record needs explicit readonly and literal-key policies. Assigning numeric values additionally depends on a stable tuple order. |
TupleToEnumOptions | Excluded | This is the options contract for an upstream operation. A local object with numeric, startIndex can configure unrelated code. |
TupleToObject | Excluded | An index-mapped tuple and an object with numeric or string keys can differ in preserved modifiers and generated array members. |
TupleToUnion | Excluded | T[number] is already owned by prefer-type-fest-array-element, and adding a second rule would duplicate reports. |
TypedArray | Excluded | Projects can deliberately omit BigInt or other typed-array families from an otherwise similar union. |
Uncurry | Excluded | Local function transformations choose their own handling of optional arguments, rest parameters, overloads, and inference. |
UndefinableDeep | Excluded | Recursive transformations need explicit boundaries for containers, functions, object leaves, and cycles. A shallow indexed or mapped type cannot specify them. |
UndefinableDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with keep can configure unrelated code. |
UndefinedOnPartial | Excluded | The optional modifier and an explicit undefined union carry different information under exactOptionalPropertyTypes. A shallow Partial or Required cannot recover that distinction. |
UndefinedOnPartialDeep | Excluded | A recursive mapped type needs explicit stopping conditions for arrays, tuples, built-ins, and readonly properties to preserve the transformation. |
UndefinedToOptional | Excluded | The optional modifier and an explicit undefined union carry different information under exactOptionalPropertyTypes. A shallow Partial or Required cannot recover that distinction. |
UnionLength | Covered | prefer-type-fest-union-length |
UnionMax | Excluded | Numeric calculations must handle widened numbers, unions, infinities, and branded inputs. Recursion over a finite literal tuple covers only part of that domain. |
UnionMember | Covered | prefer-type-fest-union-member |
UnionMin | Excluded | Numeric calculations must handle widened numbers, unions, infinities, and branded inputs. Recursion over a finite literal tuple covers only part of that domain. |
UnionToEnum | Excluded | An enum-like record needs explicit readonly and literal-key policies. Assigning numeric values additionally depends on a stable tuple order. |
UnionToIntersection | Covered | prefer-type-fest-union-to-intersection |
UnionToTuple | Covered | prefer-type-fest-union-to-tuple |
UnknownArray | Covered | prefer-type-fest-unknown-array |
UnknownCollection | Excluded | This utility includes arrays, maps, sets, and readonly and weak variants. Narrower project-specific collection unions are common. |
UnknownMap | Covered | prefer-type-fest-unknown-map |
UnknownRecord | Covered | prefer-type-fest-unknown-record |
UnknownSet | Covered | prefer-type-fest-unknown-set |
UnwrapBrandedPrimitive | Excluded | Tag names, metadata, and brand visibility depend on the originating brand. A structural field or plain intersection cannot establish that contract. |
UnwrapOpaque | Migration | prefer-type-fest-unwrap-tagged recognizes this deprecated source spelling. |
UnwrapPartial | Excluded | Removing a mapped wrapper without preserving primitives, arrays, maps, and sets changes how those inputs behave. |
UnwrapRequired | Excluded | Removing a mapped wrapper without preserving primitives, arrays, maps, and sets changes how those inputs behave. |
UnwrapTagged | Covered | prefer-type-fest-unwrap-tagged |
UppercaseLetter | Excluded | A hand-written alphabet can intentionally select a subset of ASCII. Matching an alias name cannot establish the exact character set. |
ValueOf | Covered | prefer-type-fest-value-of |
ValueOfDeep | Excluded | Recursive transformations need explicit boundaries for containers, functions, object leaves, and cycles. A shallow indexed or mapped type cannot specify them. |
WhitespaceCharacter | Excluded | Character tables encode the chosen alphabet. A project's punctuation or whitespace set can intentionally differ. |
Words | Excluded | Literal string parsers differ in their handling of wide strings, empty matches, and repeated or missing separators. |
WordsOptions | Excluded | This is the options contract for an upstream operation. A local object with splitOnNumbers, splitOnPunctuation can configure unrelated code. |
Writable | Covered | prefer-type-fest-writable |
WritableDeep | Covered | prefer-type-fest-writable-deep |
WritableDeepOptions | Excluded | This is the options contract for an upstream operation. A local object with keep can configure unrelated code. |
WritableKeysOf | Covered | prefer-type-fest-writable-keys-of |
Xor | Excluded | Boolean XOR has a policy for boolean unions and never. Object-exclusive unions express an unrelated operation. |
Type exports from type-fest/globalsβ
Importing this subpath also augments SymbolConstructor.observable. That ambient member has no independent exported name. The following three types belong specifically to type-fest/globals.
| Export | Decision | Rule or reason |
|---|---|---|
ObservableLike | Excluded | An object with a subscribe method alone does not establish the required observer protocol and subscription contract. |
Observer | Excluded | Callback interfaces choose different combinations of next, error, and complete handlers. Their names alone do not establish callback and error semantics. |
Unsubscribable | Excluded | An unsubscribe method is common to unrelated resource APIs. Its spelling does not establish an observable subscription. |
Former type-fest exportsβ
These six root exports from the v5.8.0 baseline were removed in v6. They are listed separately so their migration rules remain discoverable without inflating the current export count.
| Export | Decision | Rule or reason |
|---|---|---|
IfAny | Migration | prefer-type-fest-if recognizes this v5 conditional alias. |
IfEmptyObject | Migration | prefer-type-fest-if recognizes this v5 conditional alias. |
IfNever | Migration | prefer-type-fest-if recognizes this v5 conditional alias. |
IfNull | Migration | prefer-type-fest-if recognizes this v5 conditional alias. |
IfUnknown | Migration | prefer-type-fest-if recognizes this v5 conditional alias. |
ReadonlyTuple | Migration | prefer-type-fest-tuple-of recognizes the removed alias and preserves tuple readonlyness. |
Maintaining the inventoryβ
Use npx vitest run test/upstream-export-coverage.test.ts to compare these rows with TypeScript's resolved public symbols in the pinned fixture and the registered rules. Run npm run build and npm run sync:rules:check for the separate README and preset checks. An upstream version change calls for inspecting new and removed symbols as well as behavior changes in exports whose names survive.
Before adding a rule for an excluded export, identify a real, repeated pattern and establish its behavior on the supported inputs. Preserve union distribution, optional and readonly modifiers, alias bindings, and runtime side effects where applicable. For autofixes, test the rewritten result and include counterexamples where a change would alter behavior.