pb.intersect
v1.0.3
Published
Deprecated. Use drop-in replacement `pb.types` instead.
Readme
pb.intersect
[!NOTE] Deprecated. Please use
pb.typesas a drop-in replacement. Thank you!
Installation
npm install pb.intersectRequirements
typescript@>=5.0.0tsconfig.json > "compilerOptions" > { "strict": true }
API
Intersect<T>
import type { Intersect } from "pb.intersect";
type Example = { A: true } | { B: true } | { C: true };
type Result = Intersect<Example>;
// ^ { A: true } & { B: true } & { C: true }
// ^ { A: true; B: true; C: true }