結果 : typescript declare variable inside function