rs-restangular
Version:
Restful Resources service for Angular 2 apps
16 lines (15 loc) • 553 B
TypeScript
import { Response, RequestOptionsArgs } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import { RestangularPath } from './path';
export declare class RestangularElement<T> {
[key: string]: any;
__path__: RestangularPath;
__original__: any;
constructor(object: any, path?: RestangularPath);
clone(): RestangularElement<T>;
put(body?: any, options?: RequestOptionsArgs): Observable<Response>;
remove(options?: RequestOptionsArgs): Observable<Response>;
plain(entity?: {
new (): T;
}): T;
}