結果 : create a type from an object typescript