結果 : typescript declare type inside function