1 | declare namespace FxOrmSettings {
|
2 | interface SettingsContainerGenerator {
|
3 | (options: object): SettingInstance
|
4 | }
|
5 |
|
6 | interface SettingInstance {
|
7 | set(key: string, value: any): SettingInstance
|
8 | get(key: string, def?: Function): any
|
9 | unset(): SettingInstance
|
10 | }
|
11 |
|
12 | export class Settings {
|
13 | constructor(settings: any);
|
14 |
|
15 | static Container: any;
|
16 |
|
17 | static defaults(): {
|
18 | properties: {
|
19 | primary_key: string;
|
20 | association_key: string;
|
21 | required: boolean;
|
22 | };
|
23 |
|
24 | instance: {
|
25 | identityCache: boolean;
|
26 | identityCacheSaveCheck: boolean;
|
27 | autoSave: boolean;
|
28 | autoFetch: boolean;
|
29 | autoFetchLimit: number;
|
30 | cascadeRemove: boolean;
|
31 | returnAllErrors: boolean;
|
32 | };
|
33 |
|
34 | connection: {
|
35 | reconnect: boolean;
|
36 | poll: boolean;
|
37 | debug: boolean;
|
38 | };
|
39 | };
|
40 | }
|
41 |
|
42 | export var settings: SettingInstance;
|
43 |
|
44 | } |
\ | No newline at end of file |