fix(core): update
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
export type TStatusGroup = 'clientError' | 'serverError';
|
||||
|
||||
export class HttpStatus {
|
||||
public static statusMap: {[key:string]: any} = {};
|
||||
public static addStatus (statusStringArg: string, statusArg: any) {
|
||||
public static statusMap: { [key: string]: any } = {};
|
||||
public static addStatus(statusStringArg: string, statusArg: any) {
|
||||
HttpStatus.statusMap[statusStringArg] = statusArg;
|
||||
}
|
||||
public static getHttpStatusByString (codeStringArg: string): HttpStatus {
|
||||
const statusInstance = new (HttpStatus.statusMap[codeStringArg])();
|
||||
public static getHttpStatusByString(codeStringArg: string): HttpStatus {
|
||||
const statusInstance = new HttpStatus.statusMap[codeStringArg]();
|
||||
return statusInstance;
|
||||
}
|
||||
public code: number;
|
||||
|
||||
Reference in New Issue
Block a user