結果 : typescript create type based on interface