Utility TypeScript @ 2.0.0-beta.5
    Preparing search index...

    Module types

    Exports all global types (no JavaScript).

    0.1.0

    2.0.0-beta.2 — Now only available at its own path, not as a namespace from the main export path.

    import type { ... } from '@maddimathon/utility-typescript/types';
    

    Interfaces

    ConsoleUtility

    The expected shape for utilities (like the built-in console) that either output or log messages.

    PackageJson

    The general shape of most package.json (npm) files.

    PackageJson_Overrides

    Only for PackageJson.

    TsConfig

    A valid TsConfig object.

    Type Aliases

    AnyClass

    Refines the function type to only apply to classes.

    ArrayItem

    Infers the item types of a known array type.

    Classify

    Converts an object into a class-compatible type that requires all properties to be present, even if their values are undefined.

    CountryCode

    All valid ISO country codes.

    KeysOptional

    Returns the keys that are optional in the give object type.

    KeysRequired

    Returns the keys that are required by the given object type.

    LangCode

    All valid ISO language codes (without locales or script identifiers).

    LangLocaleCode

    A BCP 47 language tag (without any script identifiers).

    PartialChildren

    Uses the default Partial to make only property values partial.

    PartialExcept

    Partial-izes an object, except for the given T_KeysRequired, which are themselves to be required.

    PartialPick

    Partial-izes an object, but only for the given T_KeysPartial.

    RecursiveMap

    Similar to the built-in Record type, but where the object's values can also be identical records.

    RecursivePartial

    Similar to the default Partial, but this also makes any child objects partial.

    RecursivePartialChildren

    Uses RecursivePartial to make only property values partial.

    RecursivePartialExcept

    Recursively Partial-izes an object, except for the given RequiredKeys — i.e., the recursive version of PartialExcept.

    RecursiveRecord

    Similar to the built-in Record type, but where the object's values can also be identical records.

    RecursiveRequired

    Similar to the default Required, but this also makes any child objects Required.

    RecursiveRequiredPartially

    Recursively Requires the given required keys only and leaves the rest as-is — i.e., the recursive version of RequiredPartially.

    RequiredPartially

    Requires the given required keys only and leaves the rest as-is.

    SelfOrArray

    A super-simple utility for types that may or may not be arrays.

    SyncOrAsync

    Dynamically declare a value as a promise or not.

    TuplePop

    Returns a tuple without its last item.

    TupleShift

    Returns a tuple without its first item.

    TypeDump

    For debugging types with intellisense/etc. Should only be used temporarily.

    TypeDumpRecursive

    For debugging types with intellisense/etc. Should only be used temporarily.

    _RecursivePartial_Value

    This is used by RecursivePartial type to aid in recursion.

    Namespaces

    ConsoleUtility

    Utilities for the ConsoleUtility interface.

    Test

    Utility types for unit testing TypeScript types.

    TsConfig

    Utility types used by TsConfig interface.