Skip to content

Commit e917b3c

Browse files
authored
add interface of notifyMiniProgramPlayableStatus, setEnableDebug (#2)
* add interface of notifyMiniProgramPlayableStatus, setEnableDebug * fix eslint error
1 parent f83892d commit e917b3c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

@types/pal/minigame.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ declare module 'pal/minigame' {
7979
offFeedStatusChange(cb?: (type: string) => void): void;
8080
storeFeedData(opt: storeFeedDataOptions): void;
8181
getFeedData(opt: getFeedDataOptions): void;
82+
83+
setEnableDebug? (parm: DebugParameter): void;
84+
notifyMiniProgramPlayableStatus? (parm: notiOptions): void;
8285
}
8386

8487
interface WeChatAPI {
@@ -431,3 +434,16 @@ interface getFeedDataOptions {
431434
fail?: (failObj: commonFailObj) => void,
432435
complete?: () => void,
433436
}
437+
438+
interface DebugParameter {
439+
enableDebug: boolean,
440+
success?: () => void,
441+
fail?: (err: any) => void,
442+
complete?: () => void,
443+
}
444+
445+
interface notiOptions {
446+
success?: () => void,
447+
fail?: (err: any) => void,
448+
complete?: () => void,
449+
}

0 commit comments

Comments
 (0)