UNPKG

@tevm/actions

Version:

A typesafe library for writing forge scripts in typescript

5 lines (4 loc) 180 B
/** * Helper type to convert a union to an intersection */ export type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never