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