UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

4 lines 147 B
/** * @public */ export type TUnionToIntersection<T> = ((T extends unknown ? (k: T) => void : never) extends ((k: infer U) => void) ? U : never);