Так что я вызываю это в angular
savePat(obj: PatientData): Observable<IJsonSaveResult> {
return this.http.post<IJsonSaveResult>(`${environment.serviceUrl}/patients/addpatient`, obj);
}
мой IJsonSaveResult равен
export interface IJsonSaveResult {
success: boolean;
errors: any[];
resultSet: any;
}
resultSet может быть любым, но я хочу напечатать его как. Net Generics
savePat(obj: PatientData): Observable<IJsonSaveResult(PatientData)> {
return this.http.post<IJsonSaveResult>(`${environment.serviceUrl}/patients/addpatient`, obj);
}
есть идеи?