結果 : typescript check if value is type of interface