export function retrieveEmpty<T extends { data: any[] }>(): Observable<T> {
const response: T = { data: [] };
return of(response);
}
encountering a compilation error stating
Type '{ data: undefined[]; }' is not compatible with type 'T'.ts(2322)
I need assistance in resolving this issue, can someone please explain what's causing it?