Skip to content

Commit

Permalink
Merge pull request #2 from duncannevin/patch-1
Browse files Browse the repository at this point in the history
Adds appropriate types to `courses.service.ts`
  • Loading branch information
jhades authored Jun 25, 2019
2 parents 9a2c947 + 0c27922 commit 66458db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/courses/services/courses.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export class CoursesService {
}


saveCourse(courseId:number, changes: Partial<Course>) {
return this.http.put(`/api/courses/${courseId}`, changes);
saveCourse(courseId:number, changes: Partial<Course>): Observable<Course> {
return this.http.put<Course>(`/api/courses/${courseId}`, changes);
}

findLessons(
Expand Down

0 comments on commit 66458db

Please sign in to comment.