Skip to content

Commit

Permalink
fix: reconstructing the data structure
Browse files Browse the repository at this point in the history
  • Loading branch information
ChoGathK committed Oct 15, 2022
1 parent 8bc3f62 commit d7b6b4f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"dependencies": {
"@nestjs/common": "^8.4.7",
"@vodyani/class-decorator": "^8.2.3",
"@vodyani/core": "^8.9.6",
"@vodyani/core": "^8.9.7",
"@vodyani/utils": "^8.7.1",
"js-yaml": "^4.1.0",
"lodash": "4.17.21"
Expand Down
4 changes: 2 additions & 2 deletions src/struct/config-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { IConfigClient, IConfigClientSubscriber, IConfigLoader } from '@vodyani/
export class LocalConfigClient implements IConfigClient {
private subscriber: IConfigClientSubscriber;

public init<T = any>(loader: IConfigLoader) {
const result = loader.execute<T>();
public init<T = any>(loader: IConfigLoader<T>) {
const result = loader.execute();
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions test/struct/config-client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ describe('LocalConfigClient', () => {
class DemoConfigClient extends LocalConfigClient {
private hash: string;

public init<T = any>(loader: IConfigLoader) {
const result = loader.execute<T>();
public init<T = any>(loader: IConfigLoader<T>) {
const result = loader.execute();
this.hash = toHash(result);
return result;
}
Expand Down
4 changes: 2 additions & 2 deletions test/struct/config-handler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ interface File {
class DemoConfigClient extends LocalConfigClient {
private hash: string;

public init<T = any>(loader: IConfigLoader) {
const result = loader.execute<T>();
public init<T = any>(loader: IConfigLoader<T>) {
const result = loader.execute();
this.hash = toHash(result);
return result;
}
Expand Down

0 comments on commit d7b6b4f

Please sign in to comment.