-
Notifications
You must be signed in to change notification settings - Fork 0
/
public_api.ts
44 lines (32 loc) · 882 Bytes
/
public_api.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs/Observable';
declare global {
type SortOrder = 'DESC' | 'ASC';
interface Sort {
path: string;
order: SortOrder;
}
interface Array<T> {
http: HttpClient;
observable: Observable<any>;
totalElements: number;
totalPages: number;
pageNumber: number;
sortInfo: Sort[];
self_uri: string;
next_uri: string;
prev_uri: string;
first_uri: string;
last_uri: string;
next(): Observable<void>;
prev(): Observable<void>;
first(): Observable<void>;
last(): Observable<void>;
page(id: number): Observable<void>;
sortElements(...sort: Sort[]): Observable<void>;
size(size: number): Observable<void>;
}
}
export * from "./src/angular-hal.module";
export * from "./src/resource.service";
export * from "./src/resource";