Skip to content

Commit

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

0 comments on commit 06fa5d1

Please sign in to comment.