19 lines
855 B
TypeScript
19 lines
855 B
TypeScript
/// <reference types="node" />
|
|
import { IncomingHttpHeaders } from "http";
|
|
import { AsyncContext, AsyncRowStore } from "../store/AsyncRowStore";
|
|
import { EntityDict, OpRecord } from "./Entity";
|
|
import { EntityDict as BaseEntityDict } from '../base-app-domain';
|
|
export declare abstract class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends AsyncContext<ED>> {
|
|
protected path: string;
|
|
constructor(path: string);
|
|
abstract execAspect(name: string, header?: IncomingHttpHeaders, contextString?: string, params?: any): Promise<{
|
|
opRecords?: OpRecord<ED>[];
|
|
message?: string;
|
|
result: any;
|
|
}>;
|
|
abstract initialize(ifExists?: 'drop' | 'omit' | 'dropIfNotStatic'): Promise<void>;
|
|
abstract mount(): Promise<void>;
|
|
abstract unmount(): Promise<void>;
|
|
abstract getStore(): AsyncRowStore<ED, Cxt>;
|
|
}
|