File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { logger , loggerPrefix } from '../application-logger' ;
2
- import { Environment } from '../interfaces' ;
2
+ import { Environment , FormatEnum } from '../interfaces' ;
3
3
4
4
import { IAsyncStore , IConfigurationStore , ISyncStore } from './configuration-store' ;
5
5
@@ -11,6 +11,7 @@ export class HybridConfigurationStore<T> implements IConfigurationStore<T> {
11
11
private environment : Environment | null = null ;
12
12
private configFetchedAt : string | null = null ;
13
13
private configPublishedAt : string | null = null ;
14
+ private format : FormatEnum | null = null ;
14
15
15
16
/**
16
17
* Initialize the configuration store by loading the entries from the persistent store into the serving store.
@@ -93,4 +94,12 @@ export class HybridConfigurationStore<T> implements IConfigurationStore<T> {
93
94
public setConfigPublishedAt ( configPublishedAt : string ) : void {
94
95
this . configPublishedAt = configPublishedAt ;
95
96
}
97
+
98
+ public getFormat ( ) : FormatEnum | null {
99
+ return this . format ;
100
+ }
101
+
102
+ public setFormat ( format : FormatEnum ) : void {
103
+ this . format = format ;
104
+ }
96
105
}
Original file line number Diff line number Diff line change 1
- import { Environment } from '../interfaces' ;
1
+ import { Environment , FormatEnum } from '../interfaces' ;
2
2
3
3
import { IConfigurationStore , ISyncStore } from './configuration-store' ;
4
4
@@ -34,7 +34,7 @@ export class MemoryOnlyConfigurationStore<T> implements IConfigurationStore<T> {
34
34
private configFetchedAt : string | null = null ;
35
35
private configPublishedAt : string | null = null ;
36
36
private environment : Environment | null = null ;
37
- private format : string | null = null ;
37
+ private format : FormatEnum | null = null ;
38
38
init ( ) : Promise < void > {
39
39
this . initialized = true ;
40
40
return Promise . resolve ( ) ;
@@ -90,11 +90,11 @@ export class MemoryOnlyConfigurationStore<T> implements IConfigurationStore<T> {
90
90
this . configPublishedAt = configPublishedAt ;
91
91
}
92
92
93
- public getFormat ( ) : string | null {
93
+ public getFormat ( ) : FormatEnum | null {
94
94
return this . format ;
95
95
}
96
96
97
- public setFormat ( format : string ) : void {
97
+ public setFormat ( format : FormatEnum ) : void {
98
98
this . format = format ;
99
99
}
100
100
}
You can’t perform that action at this time.
0 commit comments