]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/video/video.service.ts
Better typings
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video.service.ts
index 6283cf84d83238cbff2abba8b2258c0353b4ce78..65297d7a1b50a5f9071f482bed388871dd2c5db4 100644 (file)
@@ -274,9 +274,9 @@ export class VideoService implements VideosProvider {
 
   loadCompleteDescription (descriptionPath: string) {
     return this.authHttp
-               .get(environment.apiUrl + descriptionPath)
+               .get<{ description: string }>(environment.apiUrl + descriptionPath)
                .pipe(
-                 map((res: any) => res[ 'description' ]),
+                 map(res => res.description),
                  catchError(err => this.restExtractor.handleError(err))
                )
   }