diff --git a/d.ts/antos.d.ts b/d.ts/antos.d.ts index 8db75d2..aaefdf5 100644 --- a/d.ts/antos.d.ts +++ b/d.ts/antos.d.ts @@ -1191,9 +1191,10 @@ declare namespace OS { * * @export * @param {string} ph + * @param {AppArgumentsType[]} [params] service arguments * @returns {Promise} */ - function pushService(ph: string): Promise; + function pushService(ph: string, params?: AppArgumentsType[]): Promise; /** * Synchronously start a list of services * @@ -10802,7 +10803,7 @@ declare namespace OS { * @export * @param {string} app class name string * @param {ProcessTypeClass} cls prototype class - * @param {GUI.AppArgumentsType[]} [args] process arguments + * @param {AppArgumentsType[]} [args] process arguments * @returns {Promise} a promise on the created process */ function createProcess(app: string, cls: ModelTypeClass, args?: AppArgumentsType[]): Promise; diff --git a/src/core/gui.ts b/src/core/gui.ts index dd618e4..0ae54c0 100644 --- a/src/core/gui.ts +++ b/src/core/gui.ts @@ -644,9 +644,10 @@ namespace OS { * * @export * @param {string} ph + * @param {AppArgumentsType[]} [params] service arguments * @returns {Promise} */ - export function pushService(ph: string): Promise { + export function pushService(ph: string, params?: AppArgumentsType[]): Promise { return new Promise(async function (resolve, reject) { const arr = ph.split("/"); const srv = arr[1]; @@ -662,7 +663,8 @@ namespace OS { } const d = await PM.createProcess( srv, - application[srv] + application[srv], + params ); return resolve(d); } diff --git a/src/core/pm.ts b/src/core/pm.ts index 702ddda..ded7512 100644 --- a/src/core/pm.ts +++ b/src/core/pm.ts @@ -35,7 +35,7 @@ namespace OS { * @export * @param {string} app class name string * @param {ProcessTypeClass} cls prototype class - * @param {GUI.AppArgumentsType[]} [args] process arguments + * @param {AppArgumentsType[]} [args] process arguments * @returns {Promise} a promise on the created process */ export function createProcess(