]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/angular/peertube-template.directive.ts
Fix mark all as read notifications
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / angular / peertube-template.directive.ts
index a514b6057c38d2d68ee3d0e016d2ca572ef1ac22..e04c25d9a20fbf0c1cb7ffbe9a65f5b95ddc3936 100644 (file)
@@ -3,8 +3,8 @@ import { Directive, Input, TemplateRef } from '@angular/core'
 @Directive({
   selector: '[ptTemplate]'
 })
-export class PeerTubeTemplateDirective {
-  @Input('ptTemplate') name: string
+export class PeerTubeTemplateDirective <T extends string> {
+  @Input('ptTemplate') name: T
 
   constructor (public template: TemplateRef<any>) {
     // empty