From c16655d79794c636051d00a8256c4316d81e3d27 Mon Sep 17 00:00:00 2001 From: SagaTious <38312007+SagaTious@users.noreply.github.com> Date: Mon, 6 Aug 2018 20:52:43 +0200 Subject: [PATCH] material__menu CornerBit interface is wrong (#27836) * fix: The const Corner that this interface shall describe is using | as bitwise operator, in the interface description | is logical or though, so the interface is wrong. * style: Rearranged values to match @material/menu constants definition again --- types/material__menu/constants.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/types/material__menu/constants.d.ts b/types/material__menu/constants.d.ts index 8bec0c2e0c..8c76365ef8 100644 --- a/types/material__menu/constants.d.ts +++ b/types/material__menu/constants.d.ts @@ -66,12 +66,12 @@ export interface CornerBit extends MDCNumbers { * Likewise END maps to RIGHT or LEFT depending on the directionality. */ export interface Corner extends MDCNumbers { - TOP_LEFT: 0; - TOP_RIGHT: CornerBit["RIGHT"]; - BOTTOM_LEFT: CornerBit["BOTTOM"]; - BOTTOM_RIGHT: CornerBit["BOTTOM"] | CornerBit["RIGHT"]; - TOP_START: CornerBit["FLIP_RTL"]; - TOP_END: CornerBit["FLIP_RTL"] | CornerBit["RIGHT"]; - BOTTOM_START: CornerBit["BOTTOM"] | CornerBit["FLIP_RTL"]; - BOTTOM_END: CornerBit["BOTTOM"] | CornerBit["RIGHT"] | CornerBit["FLIP_RTL"]; + TOP_LEFT: 0; + TOP_RIGHT: 4; + BOTTOM_LEFT: 1; + BOTTOM_RIGHT: 5; + TOP_START: 8; + TOP_END: 12; + BOTTOM_START: 9; + BOTTOM_END: 13; }