Variable declaration Typescript Cannot re-declare variable ‘greet’ with scope ‘Block’. I started learning Typescript, and when declared variable and variable type and launched to see result, it returned error Cannot re-declare variable ‘greet’ with scope ‘Block’.