docs: move JSDoc before functions (#58087)

Move the JSDoc before functions for correct view of params

PR Close #58087
This commit is contained in:
vladboisa
2024-10-04 21:42:39 +02:00
committed by Andrew Kushnir
parent bb0edaded0
commit a36744e4bb
+7 -7
View File
@@ -83,13 +83,6 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
export class DecimalPipe implements PipeTransform {
constructor(@Inject(LOCALE_ID) private _locale: string) {}
transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
transform(
value: number | string | null | undefined,
digitsInfo?: string,
locale?: string,
): string | null;
/**
* @param value The value to be formatted.
* @param digitsInfo Sets digit and decimal representation.
@@ -97,6 +90,13 @@ export class DecimalPipe implements PipeTransform {
* @param locale Specifies what locale format rules to use.
* [See more](#locale).
*/
transform(value: number | string, digitsInfo?: string, locale?: string): string | null;
transform(value: null | undefined, digitsInfo?: string, locale?: string): null;
transform(
value: number | string | null | undefined,
digitsInfo?: string,
locale?: string,
): string | null;
transform(
value: number | string | null | undefined,
digitsInfo?: string,