How to fix Type '{ x: string; }' is missing the following properties from type 'Y': name, age in TypeScript | DevErrors