| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | /**
* Specifies a type constraint.
*/
export default class TypeConstraint {
/**
* @param {bool} requested - `true` if requested, `false` if desired.
* @param {ConstraintType} type - the type of the constraint
* @param {?Type} type - The type the constraint represents. Null if
* negotation offer.
*/
constructor(requested: bool, type: ConstraintType, value: ?Type = null) {
this.requested = requested;
this.type = type;
this.value = value;
}
} |