Typescript Variable Within Stringent