-
Notifications
You must be signed in to change notification settings - Fork 0
/
document.d.ts
33 lines (33 loc) · 917 Bytes
/
document.d.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
import { IBasicDataResource } from './interfaces/data-resource';
import { IDocumentData } from './interfaces/document';
import { Resource } from './resource';
export declare type SourceType = 'new' | 'memory' | 'store' | 'server';
interface IDocumentHasIds {
data: Array<IBasicDataResource>;
content: 'ids';
}
interface IDocumentHasResources {
data: Array<Resource>;
content: 'collection';
}
interface IDocumentHasId {
data: IBasicDataResource;
content: 'id';
}
interface IDocumentHasResource {
data: Resource;
content: 'resource';
}
export declare class Document implements IDocumentData, IDocumentHasResources, IDocumentHasIds, IDocumentHasId, IDocumentHasResource {
data: any;
builded: boolean;
content: any;
is_loading: boolean;
loaded: boolean;
source: SourceType;
cache_last_update: number;
meta: {
[key: string]: any;
};
}
export {};