fix using any type

This commit is contained in:
Chen, Tai-Lin committed 2024-03-04 23:38:18 +08:00
1 parent ddaefca5fb
commit ec63bba0fe
5 files changed
+48 -17

No files matched your search

+7 -7
View File
@@ -1,28 +1,28 @@
/* eslint-disable max-classes-per-file */
export class TooManyRequestsError extends Error {
constructor(message: string | undefined) {
constructor(message: string) {
super(message)
this.name = 'TooManyRequestsError'
}
}
export class ValidationError extends Error {
constructor(message: string | undefined) {
constructor(message: string) {
super(message)
this.name = 'ValidationError'
}
}
export class UnauthorizedError extends Error {
constructor(message: string | undefined) {
constructor(message: string) {
super(message)
this.name = 'UnauthorizedError'
}
}
export class LoadQuestError extends Error {
questId: any
constructor(message: string | undefined, questId: any) {
questId: string
constructor(message: string, questId: string) {
super(message)
this.name = 'LoadQuestError'
this.questId = questId
@@ -30,8 +30,8 @@ export class LoadQuestError extends Error {
}
export class LoadSessionError extends Error {
questId: any
constructor(message: string | undefined, questId: any) {
questId: string
constructor(message: string, questId: string) {
super(message)
this.name = 'LoadSessionError'
this.questId = questId