type BrandedNum = number & { __numberBrand: any }; var x : BrandedNum; // operator > x > 0; x > 0; x > 0; // operator < x < 0; x < 0; x < 0; // operator >= x >= 0; x >= 0; x >= 0; // operator <= x <= 0; x <= 0; x <= 0; // operator == x == 0; x == 0; x == 0; // operator != x != 0; x != 0; x != 0; // operator === x === 0; x === 0; x === 0; // operator !== x !== 0; x !== 0; x !== 0;