build
This commit is contained in:
parent
e4d3b31b39
commit
2b087d9df5
|
|
@ -15,14 +15,14 @@ export declare class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt exten
|
|||
protected dataSubscriber?: DataSubscriber<ED, Cxt>;
|
||||
protected synchronizer?: Synchronizer<ED, Cxt>;
|
||||
protected contextBuilder: (store: DbStore<ED, Cxt>) => Cxt;
|
||||
private nsSocket;
|
||||
private nsSocket?;
|
||||
private requireSth;
|
||||
protected makeContext(cxtStr?: string, headers?: IncomingHttpHeaders): Promise<Cxt>;
|
||||
/**
|
||||
* 后台启动的configuration,统一放在这里读取
|
||||
*/
|
||||
private getConfiguration;
|
||||
constructor(path: string, nsSubscribe: Namespace, nsSocket: Namespace, nsServer?: Namespace);
|
||||
constructor(path: string, nsSubscribe?: Namespace, nsSocket?: Namespace, nsServer?: Namespace);
|
||||
protected registerTrigger(trigger: Trigger<ED, keyof ED, Cxt>): void;
|
||||
protected initTriggers(): void;
|
||||
protected initSocket(): void;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Backe
|
|||
protected dataSubscriber?: DataSubscriber<ED, Cxt>;
|
||||
protected synchronizer?: Synchronizer<ED, Cxt>;
|
||||
protected contextBuilder: (store: DbStore<ED, Cxt>) => Cxt;
|
||||
private nsSocket: Namespace;
|
||||
private nsSocket?: Namespace;
|
||||
|
||||
private requireSth(filePath: string): any {
|
||||
const depFilePath = join(this.path, filePath);
|
||||
|
|
@ -85,7 +85,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Backe
|
|||
};
|
||||
}
|
||||
|
||||
constructor(path: string, nsSubscribe: Namespace, nsSocket: Namespace, nsServer?: Namespace) {
|
||||
constructor(path: string, nsSubscribe?: Namespace, nsSocket?: Namespace, nsServer?: Namespace) {
|
||||
super(path);
|
||||
const { dbConfig } = this.getConfiguration();
|
||||
const { storageSchema } = require(`${path}/lib/oak-app-domain/Storage`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue