You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
839 B

2 months ago
declare namespace GtPush {
/**
*
* @param debugMode
*/
function setDebugMode(debugMode: boolean): void
/**
* socket
* @param enable
*/
function enableSocket(enable: boolean): void
/**
* GtPush
*/
function init(obj: {
/**
* appid
*/
appid: string
/**
*
*/
onError?: (res: { error: any }) => void
/**
* ID
*/
onClientId?: (res: { cid: string }) => void
/**
* ID线
*/
onlineState?: (res: { online: boolean }) => void
/**
*
*/
onPushMsg?: (res: { message: string }) => void
}): void
}
export default GtPush