Closed leonsilicon closed 1 year ago
TS and JS Grammar Extension version: 0.0.55 / latest
Code
const a = 2; type A = typeof a extends number ? 0 : 1; // The following highlights correctly const b = 2; type B = (typeof b) extends number ? 0 : 1;
I would use parentheses, but unfortunately Prettier automatically removes them.
TS and JS Grammar Extension version: 0.0.55 / latest
Code
I would use parentheses, but unfortunately Prettier automatically removes them.