diff options
Diffstat (limited to 'services/users/users.class.ts')
-rw-r--r-- | services/users/users.class.ts | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/services/users/users.class.ts b/services/users/users.class.ts deleted file mode 100644 index db6b5a9..0000000 --- a/services/users/users.class.ts +++ /dev/null @@ -1,20 +0,0 @@ -interface User { - name: string; - avatarUrl?: string; - age?: number; -} - -export default class Users { - users: User[] = []; - - async find (){ - return this.users; - } - - async create(data: Pick<User, 'name' | 'avatarUrl' | 'age'>){ - const user: User = { ...data }; - this.users.push(user); - return user; - } -} - |