add more docs, fix minor bug on dialog registration

This commit is contained in:
lxsang
2020-06-15 18:10:13 +02:00
parent 218f6142c6
commit 977bf0c62f
7 changed files with 400 additions and 76 deletions

View File

@ -1,7 +1,7 @@
namespace OS {
export namespace PM {
export type ProcessType = application.BaseApplication | application.BaseService;
export type ProcessTypeClass = {
export type ModelTypeClass = {
new <T extends BaseModel>(args: AppArgumentsType[]): T;
};
export var pidalloc: number = 0;
@ -17,7 +17,7 @@ namespace OS {
*/
export function createProcess(
app: string,
cls: ProcessTypeClass,
cls: ModelTypeClass,
args?: AppArgumentsType[]
): Promise<ProcessType> {
return new Promise(function (resolve, reject) {