Skip to content

Commit a266e0b

Browse files
committed
Fix tsc
1 parent 8ac0001 commit a266e0b

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/configuration-store/hybrid.store.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { logger, loggerPrefix } from '../application-logger';
2-
import { Environment } from '../interfaces';
2+
import { Environment, FormatEnum } from '../interfaces';
33

44
import { 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
}

src/configuration-store/memory.store.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Environment } from '../interfaces';
1+
import { Environment, FormatEnum } from '../interfaces';
22

33
import { 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
}

0 commit comments

Comments
 (0)