refactor: no-inferrable-types
This commit is contained in:
parent
e1aba11222
commit
e84c772916
14 changed files with 22 additions and 18 deletions
|
@ -5,7 +5,7 @@ import { HttpException } from './httpException.js';
|
|||
*/
|
||||
|
||||
export class BadRequestException extends HttpException {
|
||||
constructor(message: string = 'Bad Request') {
|
||||
constructor(message = 'Bad Request') {
|
||||
super(400, message);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import { HttpException } from './httpException.js';
|
|||
* Exception for HTTP 403 Forbidden
|
||||
*/
|
||||
export class ForbiddenException extends HttpException {
|
||||
constructor(message: string = 'Forbidden') {
|
||||
constructor(message = 'Forbidden') {
|
||||
super(403, message);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import { HttpException } from './httpException.js';
|
|||
* Exception for HTTP 404 Not Found
|
||||
*/
|
||||
export class NotFoundException extends HttpException {
|
||||
constructor(message: string = 'Not Found') {
|
||||
constructor(message = 'Not Found') {
|
||||
super(404, message);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import { HttpException } from './httpException.js';
|
|||
* Exception for HTTP 401 Unauthorized
|
||||
*/
|
||||
export class UnauthorizedException extends HttpException {
|
||||
constructor(message: string = 'Unauthorized') {
|
||||
constructor(message = 'Unauthorized') {
|
||||
super(401, message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue