СГ
Size: a a a
СГ
S
Property 'rsp$' has no initializer and is not definitely assigned in the constructor.ts(2564)
СГ
VM
Property 'rsp$' has no initializer and is not definitely assigned in the constructor.ts(2564)
Б
public getRsp(): Observable<RspInterface[]> {
const params = new HttpParams()
.set('app', 'cabinet')
.set('limit', '100')
.set('offset', '0')
.set('searchString', '');
return this.http.get<RspResponseInterface>(`${baseUrl}getRsp`, { params })
.pipe(
filter((data: RspResponseInterface) => data.success),
map((data: RspResponseInterface) => data.data),
shareReplay(),
catchError(this.handleError)
);
}СГ
СГ
СГ
Б
СГ
Б
Б
VM
VM
AI
Б
rsp$: Observable<RspInterface[]> = of([{ref: '1', description: '1111'}] as RspInterface[]); та же проблемаБ
Type 'RspInterface[] | null' is not assignable to type 'any[]'.
Type 'null' is not assignable to type 'any[]'.