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.

34 lines
724 B

2 years ago
declare namespace GtPush {
/**
*
* @param debugMode
*/
function setDebugMode(debugMode: 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