dm-tools
Version:
Dev Mentor Project Creator Tools
22 lines (17 loc) • 412 B
text/typescript
;
export const hello = (): string => {
return 'Hello DM-Tools!';
};
export function goodbye(): string {
return 'See you later =)';
}
export class AppError {
message: string;
statusCode: number;
status: string;
constructor(message: string, statusCode: number) {
this.message = message;
this.statusCode = statusCode;
this.status = statusCode < 500 ? 'error' : 'fail';
}
}