@crustack/utils
types
👉 DistributiveOmit
Same as Omit, but works with unions.
👉 EntryOf
Transform an object type into a union of its entries.
👉 KeyOf
Same as keyof, but works with unions.
👉 MaybeArray
Describe a type that might be an Array
👉 MaybePromise
Describe a type that might be a Promise
👉 Prettify
More readable types.
👉 UnionToIntersection
Transform a Union type to an Intersection type.
👉 ValueOf
Extracts the value types of an object type.
Same as KeyOf, but for values.