結果 : define type inside class typescript