Skip to content

Commit

Permalink
Improve type safety
Browse files Browse the repository at this point in the history
  • Loading branch information
kryzanivska-nastya committed Dec 16, 2024
1 parent 9861141 commit c2d7bd0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class LocalizedCurrencyPipe implements PipeTransform, OnDestroy {
});
}

transform(value: any, fixedDigits: boolean = false): any {
transform(value: number | string | null, fixedDigits: boolean = false): string | null {
if (value == null || isNaN(Number(value))) {
return null;
}
Expand Down

0 comments on commit c2d7bd0

Please sign in to comment.