Skip to content
Snippets Groups Projects
Commit 259635c2 authored by jojohoch's avatar jojohoch
Browse files

[player] Use function notation for transform method in cast pipe

to avoid lint errors in templates
parent e7757032
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,8 @@ import { Pipe, PipeTransform } from '@angular/core';
name: 'cast'
})
export class CastPipe implements PipeTransform {
transform = <S, T extends S>(value: S, type: T): T => <T>value;
// eslint-disable-next-line class-methods-use-this
transform<S, T extends S>(value: S, type: T): T {
return <T>value;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment