Skip to content

Commit

Permalink
OV-2: - remove unnecessary types
Browse files Browse the repository at this point in the history
  • Loading branch information
JKaypa committed Aug 20, 2024
1 parent d5f4f15 commit 7f48764
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion backend/src/common/types/repository.type.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type Repository<T = unknown> = {
find(): Promise<T>;
findAll(): Promise<T[]>;
findByEmail(email: string): Promise<T>;
create(payload: unknown): Promise<T>;
update(): Promise<T>;
delete(): Promise<boolean>;
Expand Down
3 changes: 0 additions & 3 deletions backend/src/common/types/service.type.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
type Service<T = unknown> = {
find(): Promise<T>;
findAll(): Promise<{
items: T[];
}>;
findByEmail(email: string): Promise<T>;
create(payload: unknown): Promise<T>;
update(): Promise<T>;
Expand Down

0 comments on commit 7f48764

Please sign in to comment.