ngx-drupal8-rest
Version:
> A wrapper library to connect to a Drupal8+ based backend
16 lines (15 loc) • 506 B
TypeScript
import { HttpParams, HttpHeaders } from '@angular/common/http';
export type HttpMethods = 'get' | 'patch' | 'post' | 'delete';
export type HttpParamsKeyValue = HttpParams | {
[param: string]: string | number | boolean;
};
export interface HttpOptions {
headers?: HttpHeaders | {
[header: string]: string | string[];
};
params?: HttpParamsKeyValue;
responseType?: string;
method?: HttpMethods;
frags?: string[] | number[];
observe?: 'body' | 'response' | 'events';
}