I'm clearly a bit late to the party, but:
interface User {
name: string;
age: number;
}
const obj: any = { name: 'Johnny', age: 25 };
const { name, age }: User = obj;
The types of properties name and age should be correctly inferred to string and number respectively.