mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: move JSDoc before functions (#58087)
Move the JSDoc before functions for correct view of params PR Close #58087
This commit is contained in:
committed by
Andrew Kushnir
parent
bb0edaded0
commit
a36744e4bb
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user