started migration of user domain to ts

This commit is contained in:
canove
2020-09-14 12:42:20 -03:00
parent 32f7e48362
commit f18bab145f
28 changed files with 781 additions and 340 deletions

View File

@@ -0,0 +1,11 @@
class AppError {
public readonly message: string;
public readonly statusCode: number;
constructor(message: string, statusCode = 400) {
this.message = message;
this.statusCode = statusCode;
}
}
export default AppError;