Skip to content

Utility types that manipulate different kinds of type-level collections

License

Notifications You must be signed in to change notification settings

jc-verse/type-collections

Repository files navigation

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>

About

Utility types that manipulate different kinds of type-level collections

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published