-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdata-application.d.ts
More file actions
15 lines (14 loc) · 927 Bytes
/
data-application.d.ts
File metadata and controls
15 lines (14 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// MOST Web Framework 2.0 Codename Blueshift BSD-3-Clause license Copyright (c) 2017-2022, THEMOST LP All rights reserved
import { IApplication, ConfigurationBase,
ApplicationService, ApplicationBase, ApplicationServiceConstructor, SequentialEventEmitter } from "@themost/common";
import {DataContext} from "./types";
export declare class DataApplication extends SequentialEventEmitter implements ApplicationBase {
constructor(cwdOrConfig?: string | unknown);
configuration: ConfigurationBase;
useStrategy(serviceCtor: ApplicationServiceConstructor<any>, strategyCtor: ApplicationServiceConstructor<any>): this;
useService(serviceCtor: ApplicationServiceConstructor<any>): this;
hasService<T>(serviceCtor: ApplicationServiceConstructor<T>): boolean;
getService<T>(serviceCtor: ApplicationServiceConstructor<T>): T;
getConfiguration(): ConfigurationBase;
createContext(): DataContext;
}