There's inconsistent type narrowing behavior when a TypeIs typeguard is assigned to a variable, and then referenced from within a nested function definition inside a conditional that references the ...