Skip to content

Commit f2ced9b

Browse files
committed
return typed doc for getCourses
1 parent 52a9db2 commit f2ced9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/db/src/core/interfaces/adminDB.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ClassroomConfig } from '@vue-skuilder/common';
1+
import { ClassroomConfig, CourseConfig } from '@vue-skuilder/common';
22

33
/**
44
* Admin functionality
@@ -12,7 +12,7 @@ export interface AdminDBInterface {
1212
/**
1313
* Get all courses
1414
*/
15-
getCourses(): Promise<PouchDB.Core.Document<{}>[]>;
15+
getCourses(): Promise<CourseConfig[]>;
1616

1717
/**
1818
* Remove a course

0 commit comments

Comments
 (0)