type-custom

1.0.5 • Public • Published

Type Custom

The most complete typescript lib

Any

  • Assert - Guarantees that a given type extends another

List

  • Join - Concatenates all items of a list into a single text
  • Map - Iterates a list with a custom generic
  • Reverse - Reverses a list

Object

  • Get - Obtains a property of an object without warnings
  • ValueOf - Get all values of an object/list

String

  • Split - Breaks a text into pieces by a delimiter

Union

Soon

Generic

Custom type execution in a more powerful way

// Prints 'c-b-a'
type Computed = Chain<'abc', [
    Split.Custom<''>,
    Reverse.Custom,
    Join.Custom<'-'>,
]>;

/type-custom/

    Package Sidebar

    Install

    npm i type-custom

    Weekly Downloads

    0

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    5 kB

    Total Files

    14

    Last publish

    Collaborators

    • nneutrinno