add interface of notifyMiniProgramPlayableStatus, setEnableDebug (#2)

* add interface of notifyMiniProgramPlayableStatus, setEnableDebug

* fix eslint error
This commit is contained in:
tangkai
2025-12-20 15:20:24 +08:00
committed by GitHub
parent f83892d9f3
commit e917b3c833
+16
View File
@@ -79,6 +79,9 @@ declare module 'pal/minigame' {
offFeedStatusChange(cb?: (type: string) => void): void;
storeFeedData(opt: storeFeedDataOptions): void;
getFeedData(opt: getFeedDataOptions): void;
setEnableDebug? (parm: DebugParameter): void;
notifyMiniProgramPlayableStatus? (parm: notiOptions): void;
}
interface WeChatAPI {
@@ -431,3 +434,16 @@ interface getFeedDataOptions {
fail?: (failObj: commonFailObj) => void,
complete?: () => void,
}
interface DebugParameter {
enableDebug: boolean,
success?: () => void,
fail?: (err: any) => void,
complete?: () => void,
}
interface notiOptions {
success?: () => void,
fail?: (err: any) => void,
complete?: () => void,
}