Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.19.0
Description
Since TypeScript 5.0, there is a break change that implicit coercions in relational operators are forbidden [1].
So that the following code in flink-runtime-web/web-dashboard/src/app/components/humanize-date.pipe.ts get error:
public transform( value: number | string | Date, ... ): string | null | undefined { if (value == null || value === '' || value !== value || value < 0) { return '-'; } ... }
The correctness improvement is availble in here [2].
I think we should optimize this type of code for better compatibility.
Attachments
Issue Links
- links to