HJ_Client/type_gDataType.d.ts
DESKTOP-15R5JU0\legu 62fef0360c init
2023-11-17 14:13:11 +08:00

67 lines
2.1 KiB
TypeScript

import * as hero from "./assets/src/shared/protocols/hero/PtlGetList";
import * as item from "./assets/src/shared/protocols/item/PtlGetList";
import * as equip from "./assets/src/shared/protocols/equip/PtlGetList";
import * as shiwu from "./assets/src/shared/protocols/shiwu/PtlGetList";
import * as peijian from "./assets/src/shared/protocols/peijian/PtlGetList";
import * as email from "./assets/src/shared/protocols/email/PtlOpen";
import * as task from "./assets/src/shared/protocols/task/PtlOpen";
import * as ResSyncBtn from "./assets/src/shared/protocols/PtlSyncBtn";
import * as friend from "./assets/src/shared/protocols/friend/PtlOpen";
import * as pay from "./assets/src/shared/protocols/pay/PtlGetList";
declare global {
type gHeroType = hero.ResGetList['list'];
type gPos = hero.ResGetList['pos'];
type gItem = item.ResGetList['list'];
type gEquip = equip.ResGetList['list'];
type gShiwu = shiwu.ResGetList['list'];
type gPeijian = peijian.ResGetList['list'];
type gLshd = {
equip: equip.ResGetList['lshd'];
hero: hero.ResGetList['lshd'];
peijian: peijian.ResGetList['lshd'];
};
type gEmail = email.ResOpen;
type gTask = task.ResOpen;
type SyncBtn = ResSyncBtn.ResSyncBtn;
type gFriend = friend.ResOpen;
type gPay = pay.ResGetList['list'];
type hdListType = {
/**活动数据 */
data: any;
/**结束时间 */
etime: number;
hdid: number;
htype: number;
/**图标 */
icon: string;
/**名字 */
name: string;
rtime: number;
showtime: string;
stime: number;
stype: number;
ttype: number;
};
type gDataType = Partial<{
hero: gHeroType;
oldHero: gHeroType;
pos: gPos;
item: gItem;
equip: gEquip;
shiwu: gShiwu;
peijian: gPeijian;
lshd: gLshd;
olshd: gLshd;
email: gEmail;
task: gTask;
syncBtn: SyncBtn;
friend: gFriend;
pay: gPay;
gbzj: {
[heroId: string]: boolean;
};
hdlist: hdListType[];
}>;
}