swaf/dist/ApplicationComponent.d.ts

11 lines
436 B
TypeScript
Raw Normal View History

2020-04-22 15:52:17 +02:00
import { Express, Router } from "express";
export default abstract class ApplicationComponent<T> {
private val?;
abstract start(app: Express, router: Router): Promise<void>;
abstract stop(): Promise<void>;
protected export(val: T): void;
import(): T;
protected prepare(name: string, prepare: () => Promise<void>): Promise<void>;
protected close(thingName: string, thing: any, fn: Function): Promise<void>;
}