Skip to content

Commit

Permalink
refactor: ♻️ rename repository definition
Browse files Browse the repository at this point in the history
  • Loading branch information
zhumeisongsong committed Dec 17, 2024
1 parent 2a0a169 commit 4efd91f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions libs/tasks/domain/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export * from './lib/entities/task.entity';
export * from './lib/entities/user-task.entity';
// tasks
export * from './lib/tasks-repository.interface';

export * from './lib/entities/task.entity';
export * from './lib/value-objects/task-status.enum';

export * from './lib/tasks.repository';
// user tasks
export * from './lib/user-tasks-repository.interface';

export * from './lib/entities/user-task.entity';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Task } from './entities/task.entity';
import { TasksRepository } from './tasks.repository';
import { TasksRepository } from './tasks-repository.interface';

class MockTasksRepository implements TasksRepository {
async findAll(): Promise<Task[]> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Task } from './entities/task.entity';
import { UserTasksRepository } from './user-tasks.repository';
import { UserTasksRepository } from './user-tasks-repository.interface';

class MockUserTasksRepository implements UserTasksRepository {
async findAll(userId: string): Promise<Task[]> {
Expand Down

0 comments on commit 4efd91f

Please sign in to comment.