I\'m trying to explicitly type a const which is created using a rest param in a destructured object. I can see that typescript can infer that it will have all the properties