hl, @sarajw This seemed to be what I needed to convince the checker that a variable was not undefined when it was in an if statement that checked exactly that, but the checker didn't realise: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#non-null-assertion-operator-postfix-
Does seem like cheating though. #TypeScript
Add comment