All files / resolver typeConstraint.js

0% Statements 0/3
0% Branches 0/1
0% Functions 0/1
0% Lines 0/3
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;
    }
}