面试题答案一键面试interface HasId { id: number; } function returnObject<T extends HasId>(obj: T): T { return obj; }