The constraint values the base type carries (see WithConstraints)
are carried over to the branded type, so that
t.brand({ baseType: t.number(0, { min: 0, max: 10 }), ... }).constraints
still reads min and max. C is inferred from baseType.constraints;
branding a base type that carries none adds no constraints property.
Brands a primitive type.
The constraint values the base type carries (see WithConstraints) are carried over to the branded type, so that
t.brand({ baseType: t.number(0, { min: 0, max: 10 }), ... }).constraintsstill readsminandmax.Cis inferred frombaseType.constraints; branding a base type that carries none adds noconstraintsproperty.