UNPKG

@rxap/remote-method

Version:

This package provides abstractions for defining and executing remote methods in Angular applications. It includes features such as automatic refreshing, proxying, and error handling. It offers a structured way to manage remote calls and their dependencies

20 lines (19 loc) 2.19 kB
import { RemoteMethodDirective } from '@rxap/remote-method/directive'; import { HttpRemoteMethodMetadata, HttpRemoteMethodParameter } from '@rxap/remote-method/http'; import { BaseRemoteMethod } from '@rxap/remote-method'; import { IdOrInstanceOrToken } from '@rxap/definition'; import * as i0 from "@angular/core"; export declare class HttpRemoteMethodDirective<ReturnType = any, Metadata extends HttpRemoteMethodMetadata = HttpRemoteMethodMetadata> extends RemoteMethodDirective<ReturnType, HttpRemoteMethodParameter, Metadata> { set headers(headers: HttpRemoteMethodParameter['headers']); set reportProgress(reportProgress: HttpRemoteMethodParameter['reportProgress']); set params(params: HttpRemoteMethodParameter['params']); set responseType(responseType: HttpRemoteMethodParameter['responseType']); set withCredentials(withCredentials: HttpRemoteMethodParameter['withCredentials']); set body(body: HttpRemoteMethodParameter['body']); set setHeaders(setHeaders: HttpRemoteMethodParameter['setHeaders']); set setParams(setParams: HttpRemoteMethodParameter['setParams']); set pathParams(pathParams: HttpRemoteMethodParameter['pathParams']); set remoteMethodOrIdOrToken(value: IdOrInstanceOrToken<BaseRemoteMethod<ReturnType, HttpRemoteMethodParameter, Metadata>>); static ɵfac: i0.ɵɵFactoryDeclaration<HttpRemoteMethodDirective<any, any>, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<HttpRemoteMethodDirective<any, any>, "button[rxapHttpRemoteMethod]", never, { "headers": { "alias": "headers"; "required": false; }; "reportProgress": { "alias": "reportProgress"; "required": false; }; "params": { "alias": "params"; "required": false; }; "responseType": { "alias": "responseType"; "required": false; }; "withCredentials": { "alias": "withCredentials"; "required": false; }; "body": { "alias": "body"; "required": false; }; "setHeaders": { "alias": "setHeaders"; "required": false; }; "setParams": { "alias": "setParams"; "required": false; }; "pathParams": { "alias": "pathParams"; "required": false; }; "remoteMethodOrIdOrToken": { "alias": "rxapHttpRemoteMethod"; "required": false; }; }, {}, never, never, true, never>; }