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

[player] Convert `transform` function of CastPipe to arrow function

parent a9348b39
No related branches found
No related tags found
No related merge requests found
......@@ -4,14 +4,5 @@ import { Pipe, PipeTransform } from '@angular/core';
name: 'cast'
})
export class CastPipe implements PipeTransform {
/**
* Cast (S: SuperType) into (T: Type) using @Generics.
* @param value (S: SuperType) obtained from input type.
* @optional @param type (T CastingType)
* type?: { new (): T }
* type?: new () => T
*/
transform<S, T extends S>(value: S, type?: T): T {
return <T>value;
}
transform = <S, T extends S>(value: S, type: T): T => <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