UNPKG

428 BTypeScriptView Raw
1import { Observable } from 'rxjs';
2import { RpcExceptionsHandler } from '../exceptions/rpc-exceptions-handler';
3export declare class RpcProxy {
4 create(targetCallback: (...args: unknown[]) => Promise<Observable<any>>, exceptionsHandler: RpcExceptionsHandler): (...args: unknown[]) => Promise<Observable<unknown>>;
5 handleError<T>(exceptionsHandler: RpcExceptionsHandler, args: unknown[], error: T): Observable<unknown>;
6}