Interface:
export interface User { id: number; name: string; foo: string; bar: string; }
How do I check that a returned object from
Here is an example:
getUser(user: User) { return user; }
Just make sure that you pass a user of type User in your function