mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 11:48:21 +01:00
update API
This commit is contained in:
parent
8d504f273e
commit
b5eb1a78b8
12
libantosdk/core/ts/antos.d.ts
vendored
12
libantosdk/core/ts/antos.d.ts
vendored
@ -920,7 +920,7 @@ declare namespace OS {
|
|||||||
* @export
|
* @export
|
||||||
* @interface AnnouncementDataType
|
* @interface AnnouncementDataType
|
||||||
*/
|
*/
|
||||||
interface AnnouncementDataType {
|
interface AnnouncementDataType<T> {
|
||||||
/**
|
/**
|
||||||
* message string
|
* message string
|
||||||
*
|
*
|
||||||
@ -962,7 +962,7 @@ declare namespace OS {
|
|||||||
* @type {*}
|
* @type {*}
|
||||||
* @memberof AppAnnouncementDataType
|
* @memberof AppAnnouncementDataType
|
||||||
*/
|
*/
|
||||||
u_data?: any;
|
u_data?: T;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Observable entry type definition
|
* Observable entry type definition
|
||||||
@ -1114,10 +1114,10 @@ declare namespace OS {
|
|||||||
*
|
*
|
||||||
* @export
|
* @export
|
||||||
* @param {string} e event name
|
* @param {string} e event name
|
||||||
* @param {(d: API.AnnouncementDataType) => void} f event callback
|
* @param {(d: API.AnnouncementDataType<any>) => void} f event callback
|
||||||
* @param {GUI.BaseModel} a the process (Application/service) related to the callback
|
* @param {GUI.BaseModel} a the process (Application/service) related to the callback
|
||||||
*/
|
*/
|
||||||
function on(e: string, f: (d: API.AnnouncementDataType) => void, a: BaseModel): void;
|
function on(e: string, f: (d: API.AnnouncementDataType<any>) => void, a: BaseModel): void;
|
||||||
/**
|
/**
|
||||||
* Trigger a global event
|
* Trigger a global event
|
||||||
*
|
*
|
||||||
@ -4716,11 +4716,11 @@ declare namespace OS {
|
|||||||
*
|
*
|
||||||
* @protected
|
* @protected
|
||||||
* @param {string} e event name
|
* @param {string} e event name
|
||||||
* @param {(d: API.AnnouncementDataType) => void} f event callback
|
* @param {(d: API.AnnouncementDataType<any>) => void} f event callback
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
* @memberof BaseModel
|
* @memberof BaseModel
|
||||||
*/
|
*/
|
||||||
subscribe(e: string, f: (d: API.AnnouncementDataType) => void): void;
|
subscribe(e: string, f: (d: API.AnnouncementDataType<any>) => void): void;
|
||||||
/**
|
/**
|
||||||
* Open a dialog
|
* Open a dialog
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user