Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rkamysz committed Jul 25, 2023
1 parent 44a731b commit a3a0274
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/api/api.dependencies.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Result } from '@alien-worlds/api-core';
import { Container, Result, Route, UnknownObject } from '@alien-worlds/api-core';
import { DatabaseConfigBuilder, Dependencies } from '../common';
import { Api } from './api';

Expand All @@ -8,7 +8,11 @@ import { Api } from './api';
*/
export abstract class ApiDependencies extends Dependencies {
public api: Api;
public ioc: Container;
public databaseConfigBuilder: DatabaseConfigBuilder;

public abstract initialize(): Promise<Result>;
public abstract initialize(
setupIoc: (config: UnknownObject, container: Container) => Promise<void>,
routesProvider: (container: Container) => Route[]
): Promise<Result>;
}

0 comments on commit a3a0274

Please sign in to comment.