結果 : typescript throw error with code