Extending Angular DatePipe errors in Angular 11, worked in Angular 10
Angular 11 brings stricter types for DatePipe where method overloading is used.
You can calm down TypeScript compiler by adding overload for transform
method like:
transform(DateValue: null | undefined, args?: string): null;
transform(DateValue: number, args: string): string | null {
...
}