Created
October 12, 2021 16:10
-
-
Save radzserg/57f0875609c91c4265107e48b56987c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UsersRepository { | |
async findAll() { | |
return [ | |
{ | |
id: 1, | |
name: "John Doe" | |
}, | |
{ | |
id: 2, | |
name: "Tom Smith" | |
}, | |
]; | |
} | |
async add(user: any) { | |
return Promise.resolve(user); | |
} | |
} | |
export class AppLogger { | |
public error(e: Error) { | |
// @todo some proper implementation | |
console.error(e) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment