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 11import { logger , loggerPrefix } from '../application-logger' ;
2- import { Environment } from '../interfaces' ;
2+ import { Environment , FormatEnum } from '../interfaces' ;
33
44import { IAsyncStore , IConfigurationStore , ISyncStore } from './configuration-store' ;
55
@@ -11,6 +11,7 @@ export class HybridConfigurationStore<T> implements IConfigurationStore<T> {
1111 private environment : Environment | null = null ;
1212 private configFetchedAt : string | null = null ;
1313 private configPublishedAt : string | null = null ;
14+ private format : FormatEnum | null = null ;
1415
1516 /**
1617 * 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> {
9394 public setConfigPublishedAt ( configPublishedAt : string ) : void {
9495 this . configPublishedAt = configPublishedAt ;
9596 }
97+
98+ public getFormat ( ) : FormatEnum | null {
99+ return this . format ;
100+ }
101+
102+ public setFormat ( format : FormatEnum ) : void {
103+ this . format = format ;
104+ }
96105}
Original file line number Diff line number Diff line change 1- import { Environment } from '../interfaces' ;
1+ import { Environment , FormatEnum } from '../interfaces' ;
22
33import { IConfigurationStore , ISyncStore } from './configuration-store' ;
44
@@ -34,7 +34,7 @@ export class MemoryOnlyConfigurationStore<T> implements IConfigurationStore<T> {
3434 private configFetchedAt : string | null = null ;
3535 private configPublishedAt : string | null = null ;
3636 private environment : Environment | null = null ;
37- private format : string | null = null ;
37+ private format : FormatEnum | null = null ;
3838 init ( ) : Promise < void > {
3939 this . initialized = true ;
4040 return Promise . resolve ( ) ;
@@ -90,11 +90,11 @@ export class MemoryOnlyConfigurationStore<T> implements IConfigurationStore<T> {
9090 this . configPublishedAt = configPublishedAt ;
9191 }
9292
93- public getFormat ( ) : string | null {
93+ public getFormat ( ) : FormatEnum | null {
9494 return this . format ;
9595 }
9696
97- public setFormat ( format : string ) : void {
97+ public setFormat ( format : FormatEnum ) : void {
9898 this . format = format ;
9999 }
100100}
You can’t perform that action at this time.
0 commit comments