Type API.
Readonly
Name of the type.
Create an intersection type from another type.
const A = Type<A>("A");const B = Type<B>("B");A.inter("I", B); // => Type<A & B> Copy
const A = Type<A>("A");const B = Type<B>("B");A.inter("I", B); // => Type<A & B>
Create a union type from another type.
const A = Type<A>("A");const B = Type<B>("B");A.union("U", B); // => Type<A | B> Copy
const A = Type<A>("A");const B = Type<B>("B");A.union("U", B); // => Type<A | B>
Type API.