type-collections
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

type-collections

Utility types that manipulate different kinds of type-level collections

Installation

yarn add -D type-collections

Usage

// We only offer types. You are recommended to use `import type`
import type { U2I } from "type-collections";

type A = U2I<{ a: 1 } & { b: 2 }>;

APIs

  • U2I<U>
  • U2T<U>
  • T2U<T>
  • U2P<U>
  • Join<Arr, Sep?>
  • Split<S, Sep?>
  • FromEntries<KV>
  • Entries<O>
  • KeyUnion<O>
  • Tuple<L, T?>
  • Length<T>

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i type-collections

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    2.18 MB

    Total Files

    18

    Last publish

    Collaborators

    • joshcena