(
value: number | string | null | undefined,
digitsInfo?: string,
locale?: string,
)
| 107 | locale?: string, |
| 108 | ): string | null; |
| 109 | transform( |
| 110 | value: number | string | null | undefined, |
| 111 | digitsInfo?: string, |
| 112 | locale?: string, |
| 113 | ): string | null { |
| 114 | if (!isValue(value)) return null; |
| 115 | |
| 116 | locale ||= this._locale; |
| 117 | |
| 118 | try { |
| 119 | const num = strToNumber(value); |
| 120 | return formatNumber(num, locale, digitsInfo); |
| 121 | } catch (error) { |
| 122 | throw invalidPipeArgumentError(DecimalPipe, (error as Error).message); |
| 123 | } |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
nothing calls this directly
no test coverage detected