結果 : define type in class typescript