fix: 补充类型

This commit is contained in:
ningmengchongshui 2024-06-09 20:12:01 +08:00
parent c7e3b94161
commit 7cb7fbdd6d
8 changed files with 23 additions and 22 deletions

View File

@ -15,7 +15,7 @@ export default class messageEvent extends EventListener {
/** /**
* *
*/ */
super({ event: 'message' }) super({ event: 'message' , prefix: undefined, once: undefined})
} }
/** /**

View File

@ -13,7 +13,7 @@ export default class noticeEvent extends EventListener {
/** /**
* *
*/ */
super({ event: 'notice' }) super({ event: 'notice', prefix: undefined, once: undefined })
} }
/** /**

View File

@ -16,7 +16,7 @@ export default class offlineEvent extends EventListener {
/** /**
* *
*/ */
super({ event: 'system.offline' }) super({ event: 'system.offline', prefix: undefined, once: undefined })
} }
/** /**

View File

@ -18,7 +18,8 @@ export default class onlineEvent extends EventListener {
*/ */
super({ super({
event: 'system.online', event: 'system.online',
once: true once: true,
prefix: undefined,
}) })
} }

View File

@ -13,7 +13,7 @@ export default class requestEvent extends EventListener {
/** /**
* *
*/ */
super({ event: 'request' }) super({ event: 'request' , prefix: undefined, once: undefined})
} }
/** /**

View File

@ -1,2 +1,2 @@
export * from '#miao' export { Common, Date } from '#miao'
export { Character, Weapon } from '#miao.models' export { Character, Weapon } from '#miao.models'

View File

@ -46,7 +46,7 @@ export default class DailyCache extends BaseModel {
* * servKey (mys/hoyolab)servCache * * servKey (mys/hoyolab)servCache
* @returns {DailyCache} * @returns {DailyCache}
*/ */
static create(uid: number | string, game = 'config') { static create(uid?: number | string, game = 'config') {
return new DailyCache(uid, game) return new DailyCache(uid, game)
} }

View File

@ -13,7 +13,7 @@ import MysUtil from './MysUtil.js'
import lodash from 'lodash' import lodash from 'lodash'
import fetch from 'node-fetch' import fetch from 'node-fetch'
import { MysUserDB, UserDB } from '../db/index.js' import { MysUserDB } from '../db/index.js'
import { Data } from '../local.js' import { Data } from '../local.js'