@@ -18,7 +18,7 @@ import { AppServiceRegistration, Bridge, Request, WeakEvent, BridgeContext, Matr
1818import { MjolnirManager } from ".//MjolnirManager" ;
1919import { DataStore , PgDataStore } from ".//datastore" ;
2020import { Api } from "./Api" ;
21- import { IConfig } from "./config/config" ;
21+ import { IConfig as IAppserviceConfig } from "./config/config" ;
2222import { AccessControl } from "./AccessControl" ;
2323import { OpenMetrics } from "../webapis/OpenMetrics" ;
2424
@@ -37,7 +37,7 @@ export class MjolnirAppService {
3737 * use `makeMjolnirAppService`.
3838 */
3939 private constructor (
40- public readonly config : IConfig ,
40+ public readonly config : IAppserviceConfig ,
4141 public readonly bridge : Bridge ,
4242 private readonly mjolnirManager : MjolnirManager ,
4343 private readonly accessControl : AccessControl ,
@@ -54,7 +54,7 @@ export class MjolnirAppService {
5454 * @param registrationFilePath A file path to the registration file to read the namespace and tokens from.
5555 * @returns A new `MjolnirAppService`.
5656 */
57- public static async makeMjolnirAppService ( config : IConfig , dataStore : DataStore , registrationFilePath : string ) {
57+ public static async makeMjolnirAppService ( config : IAppserviceConfig , dataStore : DataStore , registrationFilePath : string ) {
5858 const bridge = new Bridge ( {
5959 homeserverUrl : config . homeserver . url ,
6060 domain : config . homeserver . domain ,
@@ -92,7 +92,7 @@ export class MjolnirAppService {
9292 * @param config The parsed configuration file.
9393 * @param registrationFilePath A path to their homeserver registration file.
9494 */
95- public static async run ( port : number , config : IConfig , registrationFilePath : string ) : Promise < MjolnirAppService > {
95+ public static async run ( port : number , config : IAppserviceConfig , registrationFilePath : string ) : Promise < MjolnirAppService > {
9696 Logger . configure ( config . logging ?? { console : "debug" } ) ;
9797 const dataStore = new PgDataStore ( config . db . connectionString ) ;
9898 await dataStore . init ( ) ;
0 commit comments