The expected shape for utilities (like the built-in console) that either output or log messages.
The general shape of most package.json (npm) files.
Only for PackageJson.
A valid TsConfig object.
Refines the function type to only apply to classes.
Infers the item types of a known array type.
Converts an object into a class-compatible type that requires all properties to be present, even if their values are undefined.
All valid ISO country codes.
Tries to reconstitue a type created with ToEntriesArray or ToEntriesArrayReadonly for better Object.fromEntries typing.
Returns the keys that are optional in the give object type.
Returns the keys that are required by the given object type.
All valid ISO language codes (without locales or script identifiers).
A BCP 47 language tag (without any script identifiers).
Tries to merge object types together. Use cautiously as results may not always be what you expect.
Tries to merge object types together. Use cautiously as results may not always be what you expect.
Tries to merge an object union together. Use cautiously as results may not always be what you expect.
Uses the default Partial to make only property values partial.
Partial-izes an object, except for the given T_KeysRequired, which are themselves to be required.
Partial-izes an object, but only for the given T_KeysPartial.
Similar to the built-in Record type, but where the object's values can also
be identical records.
Similar to the default Partial, but this also makes any child objects partial.
Uses RecursivePartial to make only property values partial.
Recursively Partial-izes an object, except for the given RequiredKeys — i.e., the recursive version of PartialExcept.
Similar to the built-in Record type, but where the object's values can also
be identical records.
Similar to the default Required, but this also makes any child objects Required.
Recursively Requires the given required keys only and leaves the rest as-is — i.e., the recursive version of RequiredPartially.
Requires the given required keys only and leaves the rest as-is.
A super-simple utility for types that may or may not be arrays.
Dynamically declare a value as a promise or not.
Tries to get a more type-aware array of a known object's entry pairs.
Tries to get a more type-aware array of a known object's entry pairs and returns a read-only result.
Tries to get a more type-aware array of a known object's entry pairs.
Tries to get a more type-aware array of a known object's entry pairs and returns a read-only result.
Returns a tuple without its last item.
Returns a tuple without its first item.
For debugging types with intellisense/etc. Should only be used temporarily.
For debugging types with intellisense/etc. Should only be used temporarily.
Converts a union type to an intersection type. Use cautiously as results may not always be what you expect.
This is used by RecursivePartial type to aid in recursion.
Utilities for the ConsoleUtility interface.
Intended only for use by FromEntries.
Utility types for unit testing TypeScript types.
Utility types used by TsConfig interface.
Exports all global types (no JavaScript).
Since
0.1.0
Since
2.0.0-beta.2 — Now only available at its own path, not as a namespace from the main export path.
Example