Skip to content

UnionToIntersection

@tsed/schema

Usage

typescript
import { UnionToIntersection } from "@tsed/specs/schema/src/domain/types";

See /packages/specs/schema/src/domain/types.ts.

Overview

ts
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;

Released under the MIT License.