From c6f44ffd54b3263f5076df58fbaa12450059c660 Mon Sep 17 00:00:00 2001 From: Orange_66 Date: Thu, 11 Sep 2025 16:45:05 +0800 Subject: [PATCH] Rallback overload Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICXB0Y Signed-off-by: Orange_66 --- api/@ohos.buffer.d.ts | 7 + api/@ohos.util.stream.d.ts | 15 +- arkts/@arkts.math.Decimal.d.ets | 452 +++----------------------------- 3 files changed, 40 insertions(+), 434 deletions(-) diff --git a/api/@ohos.buffer.d.ts b/api/@ohos.buffer.d.ts index 5289014e54..c5b4e19e20 100644 --- a/api/@ohos.buffer.d.ts +++ b/api/@ohos.buffer.d.ts @@ -683,6 +683,13 @@ declare namespace buffer { function fromWithStringTypedInputEncoding(input: string, encoding?: BufferEncoding): Buffer; /** + * Creates a Buffer instance based on a string in the given encoding format. + * + * @overload { fromWithArray, fromWithArrayBufferByteOffsetLength, fromWithBuffer, + fromWithObjectTypedInputOffsetOrEncodingLength, fromWithStringTypedInputEncoding } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice * @since 20 static */ export overload from { fromWithArray, fromWithArrayBufferByteOffsetLength, fromWithBuffer, diff --git a/api/@ohos.util.stream.d.ts b/api/@ohos.util.stream.d.ts index faa097be81..1a1029eeff 100644 --- a/api/@ohos.util.stream.d.ts +++ b/api/@ohos.util.stream.d.ts @@ -406,22 +406,9 @@ declare namespace stream { * @crossplatform * @atomicservice * @since 12 dynamic - */ - constructor(options: ReadableOptions); - - /** - * The Readable constructor. - * - * @param { ReadableOptions } options - Provide options. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - constructor fromOptions(options: ReadableOptions); - - /** * @since 20 static */ - overload constructor { fromOptions }; + constructor(options: ReadableOptions); /** * Reads a buffer of a specified size from the buffer. If the available buffer is sufficient, the result diff --git a/arkts/@arkts.math.Decimal.d.ets b/arkts/@arkts.math.Decimal.d.ets index f5c2fd996e..219e76cb14 100644 --- a/arkts/@arkts.math.Decimal.d.ets +++ b/arkts/@arkts.math.Decimal.d.ets @@ -1479,6 +1479,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toBinary(): string; @@ -1504,6 +1505,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toBinary(significantDigits: double): string; @@ -1531,47 +1533,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toBinary(significantDigits: double, rounding: Rounding): string; - - /** - * Return a string representing the value of this Decimal in base 2. - * - * @returns { string } the string type - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toBinaryWithNoArg(): string; - - /** - * Return a string representing the value of this Decimal in base 2, round to `significantDigits` - * significant digits. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits` is out of range. - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toBinaryWithSignificantDigits(significantDigits: double): string; - - /** - * Return a string representing the value of this Decimal in base 2, round to `significantDigits` - * significant digits using rounding mode `rounding`. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toBinaryWithSignificantDigitsRounding(significantDigits: double, rounding: Rounding): string; - - /** - * @since 20 static - */ - overload toBinary { toBinaryWithNoArg, toBinaryWithSignificantDigits, toBinaryWithSignificantDigitsRounding }; + toBinary(significantDigits: double, rounding: Rounding): string; /** * Return a string representing the value of this Decimal in base 8. @@ -1589,6 +1553,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toOctal(): string; @@ -1612,6 +1577,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toOctal(significantDigits: double): string; @@ -1639,46 +1605,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toOctal(significantDigits: double, rounding: Rounding): string; - - /** - * Return a string representing the value of this Decimal in base 8. - * - * @returns { string } the string type - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toOctalWithNoArg(): string; - - /** - * Return a string representing the value of this Decimal in base 8, round to `significantDigits` significant. - * - * @param { double } significantDigits {double | string | Decimal} - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toOctalWithSignificantDigits(significantDigits: double): string; - - /** - * Return a string representing the value of this Decimal in base 8, round to `significantDigits` significant - * digits using rounding mode `rounding`. - * - * @param { double } significantDigits {double | string | Decimal} - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toOctalWithSignificantDigitsRounding(significantDigits: double, rounding: Rounding): string; - - /** - * @since 20 static - */ - overload toOctal { toOctalWithNoArg, toOctalWithSignificantDigits, toOctalWithSignificantDigitsRounding }; + toOctal(significantDigits: double, rounding: Rounding): string; /** * Return a string representing the value of this Decimal in base 16 @@ -1696,6 +1625,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toHexadecimal(): string; @@ -1719,6 +1649,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toHexadecimal(significantDigits: double): string; @@ -1746,46 +1677,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toHexadecimal(significantDigits: double, rounding: Rounding): string; - - /** - * Return a string representing the value of this Decimal in base 16 - * - * @returns { string } the string type - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toHexadecimalWithNoArg(): string; - - /** - * Return a string representing the value of this Decimal in base 16, round to `significantDigits` significant. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toHexadecimalWithSignificantDigits(significantDigits: double): string; - - /** - * Return a string representing the value of this Decimal in base 16, round to `significantDigits` significant - * digits using rounding mode `rounding`. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toHexadecimalWithSignificantDigitsRounding(significantDigits: double, rounding: Rounding): string; - - /** - * @since 20 static - */ - overload toHexadecimal { toHexadecimalWithNoArg, toHexadecimalWithSignificantDigits, toHexadecimalWithSignificantDigitsRounding }; + toHexadecimal(significantDigits: double, rounding: Rounding): string; /** * Return a new Decimal whose value is the value of this Decimal. @@ -1803,6 +1697,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toDecimalPlaces(): Decimal; @@ -1828,6 +1723,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toDecimalPlaces(decimalPlaces: double): Decimal; @@ -1855,47 +1751,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toDecimalPlaces(decimalPlaces: double, rounding: Rounding): Decimal; - - /** - * Return a new Decimal whose value is the value of this Decimal. - * - * @returns { Decimal } the Decimal type - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toDecimalPlacesWithNoArg(): Decimal; - - /** - * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `decimalPlaces` - * decimal places. - * - * @param { double } decimalPlaces Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200001 - The value of `decimalPlaces` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toDecimalPlacesWithDecimalPlaces(decimalPlaces: double): Decimal; - - /** - * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `decimalPlaces` - * decimal places using rounding mode `rounding`. - * - * @param { double } decimalPlaces Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200001 - The value of `decimalPlaces | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toDecimalPlacesWithDecimalPlacesRounding(decimalPlaces: double, rounding: Rounding): Decimal; - - /** - * @since 20 static - */ - overload toDecimalPlaces { toDecimalPlacesWithNoArg, toDecimalPlacesWithDecimalPlaces, toDecimalPlacesWithDecimalPlacesRounding }; + toDecimalPlaces(decimalPlaces: double, rounding: Rounding): Decimal; /** * Return a string representing the value of this Decimal in exponential notation. @@ -1913,6 +1771,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toExponential(): string; @@ -1938,6 +1797,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toExponential(decimalPlaces: double): string; @@ -1965,47 +1825,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toExponential(decimalPlaces: double, rounding: Rounding): string; - - /** - * Return a string representing the value of this Decimal in exponential notation. - * - * @returns { string } the string type - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toExponentialWithNoArg(): string; - - /** - * Return a string representing the value of this Decimal in exponential notation rounded to - * `decimalPlaces` fixed decimal places. - * - * @param { double } decimalPlaces Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `decimalPlaces` is out of range. - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toExponentialWithDecimalPlaces(decimalPlaces: double): string; - - /** - * Return a string representing the value of this Decimal in exponential notation rounded to - * `decimalPlaces` fixed decimal places using rounding mode `rounding`. - * - * @param { double } decimalPlaces Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `decimalPlaces | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toExponentialWithDecimalPlacesRounding(decimalPlaces: double, rounding: Rounding): string; - - /** - * @since 20 static - */ - overload toExponential { toExponentialWithNoArg, toExponentialWithDecimalPlaces, toExponentialWithDecimalPlacesRounding }; + toExponential(decimalPlaces: double, rounding: Rounding): string; /** * Return a string representing the value of this Decimal in normal (fixed-point). @@ -2023,6 +1845,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toFixed(): string; @@ -2047,6 +1870,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toFixed(decimalPlaces: double): string; @@ -2074,47 +1898,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toFixed(decimalPlaces: double, rounding: Rounding): string; - - /** - * Return a string representing the value of this Decimal in normal (fixed-point). - * - * @returns { string } the string type - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toFixedWithNoArg(): string; - - /** - * Return a string representing the value of this Decimal in normal (fixed-point) notation to - * `decimalPlaces` fixed decimal places. - * - * @param { double } decimalPlaces Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `decimalPlaces` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toFixedWithDecimalPlaces(decimalPlaces: double): string; - - /** - * Return a string representing the value of this Decimal in normal (fixed-point) notation to - * `decimalPlaces` fixed decimal places and rounded using rounding mode `rounding`. - * - * @param { double } decimalPlaces Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `decimalPlaces | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toFixedWithDecimalPlacesRounding(decimalPlaces: double, rounding: Rounding): string; - - /** - * @since 20 static - */ - overload toFixed { toFixedWithNoArg, toFixedWithDecimalPlaces, toFixedWithDecimalPlacesRounding }; + toFixed(decimalPlaces: double, rounding: Rounding): string; /** * Return an array representing the value of this Decimal as a simple fraction with an integer @@ -2134,6 +1920,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toFraction(): Decimal[]; @@ -2165,35 +1952,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toFraction(maxDenominator: Value): Decimal[]; - - /** - * Return an array representing the value of this Decimal as a simple fraction with an integer - * numerator and an integer denominator. - * - * @returns { Decimal[] } the Decimal[] type - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toFractionWithNoArg(): Decimal[]; - - /** - * Return an array representing the value of this Decimal as a simple fraction with an integer - * numerator and an integer denominator. The denominator will be a positive non-zero value - * less than or equal to `max_denominator`. - * - * @param { Value } maxDenominator {double | string | Decimal} - * @returns { Decimal[] } the Decimal[] type - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toFractionWithMaxDenominator(maxDenominator: Value): Decimal[]; - - /** - * @since 20 static - */ - overload toFraction { toFractionWithNoArg, toFractionWithMaxDenominator }; + toFraction(maxDenominator: Value): Decimal[]; /** * Returns a new Decimal whose value is the nearest multiple of `n`. @@ -2219,6 +1980,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toNearest(n: Value): Decimal; @@ -2252,36 +2014,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toNearest(n: Value, rounding: Rounding): Decimal; - - /** - * Returns a new Decimal whose value is the nearest multiple of `n`. - * - * @param { Value } n {double | string | Decimal} - * @returns { Decimal } the Decimal type - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toNearestWithN(n: Value): Decimal; - - /** - * Returns a new Decimal whose value is the nearest multiple of `n` in the direction of rounding - * mode `rounding`, to the value of this Decimal. - * - * @param { Value } n {double | string | Decimal} - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200001 - The value of `rounding` is out of range. - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toNearestWithNRounding(n: Value, rounding: Rounding): Decimal; - - /** - * @since 20 static - */ - overload toNearest { toNearestWithN, toNearestWithNRounding }; + toNearest(n: Value, rounding: Rounding): Decimal; /** * Return a string representing the value of this Decimal. @@ -2299,6 +2034,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toPrecision(): string; @@ -2322,6 +2058,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toPrecision(significantDigits: double): string; @@ -2349,46 +2086,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toPrecision(significantDigits: double, rounding: Rounding): string; - - /** - * Return a string representing the value of this Decimal. - * - * @returns { string } the string type - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toPrecisionWithNoArg(): string; - - /** - * Return a string representing the value of this Decimal rounded to `significantDigits` significant digits. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toPrecisionWithSignificantDigits(significantDigits: double): string; - - /** - * Return a string representing the value of this Decimal rounded to `significantDigits` significant digits - * using rounding mode `rounding`. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { string } the string type - * @throws { BusinessError } 10200001 - The value of `significantDigits | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toPrecisionWithSignificantDigitsRounding(significantDigits: double, rounding: Rounding): string; - - /** - * @since 20 static - */ - overload toPrecision { toPrecisionWithNoArg, toPrecisionWithSignificantDigits, toPrecisionWithSignificantDigitsRounding }; + toPrecision(significantDigits: double, rounding: Rounding): string; /** * Return a new Decimal whose value is the value of this Decimal. @@ -2406,6 +2106,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toSignificantDigits(): Decimal; @@ -2431,6 +2132,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ toSignificantDigits(significantDigits: double): Decimal; @@ -2458,47 +2160,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - toSignificantDigits(significantDigits: double, rounding: Rounding): Decimal; - - /** - * Return a new Decimal whose value is the value of this Decimal. - * - * @returns { Decimal } the Decimal type - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - toSignificantDigitsWithNoArg(): Decimal; - - /** - * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `significantDigits` - * significant digits. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200001 - The value of `significantDigits` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toSignificantDigitsWithSignificantDigits(significantDigits: double): Decimal; - - /** - * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `significantDigits` - * significant digits using rounding mode `rounding`. - * - * @param { double } significantDigits Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * @param { Rounding } rounding Rounding mode. Integer, 0 to 8 inclusive. - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200001 - The value of `significantDigits | rounding` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - toSignificantDigitsWithSignificantDigitsRounding(significantDigits: double, rounding: Rounding): Decimal; - - /** - * @since 20 static - */ - overload toSignificantDigits { toSignificantDigitsWithNoArg, toSignificantDigitsWithSignificantDigits, toSignificantDigitsWithSignificantDigitsRounding }; + toSignificantDigits(significantDigits: double, rounding: Rounding): Decimal; /** * Return the value of this Decimal converted to a number primitive. Zero keeps its sign. @@ -2602,6 +2266,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ precision(): double; @@ -2629,35 +2294,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - precision(includeZeros: boolean | int): double; - - /** - * Return the number of significant digits of the value of this Decimal. - * - * @returns { double } the number type - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - precisionWithNoArg(): double; - - /** - * Return the number of significant digits of the value of this Decimal, whether to count - * integer-part trailing zeros. - * - * @param { boolean | int } includeZeros Whether to count integer-part trailing zeros: true, false, - * 1 or 0. - * @returns { double } the number type - * @throws { BusinessError } 10200001 - The value of `includeZeros` is out of range. - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - precisionWithIncludeZeros(includeZeros: boolean | int): double; - - /** - * @since 20 static - */ - overload precision { precisionWithNoArg, precisionWithIncludeZeros }; + precision(includeZeros: boolean | int): double; /** * Return a new Decimal whose value is the absolute value of `n`. @@ -3835,6 +3474,7 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic + * @since 20 static */ static random(): Decimal; @@ -3868,37 +3508,9 @@ declare class Decimal { * @crossplatform * @atomicservice * @since 18 dynamic - */ - static random(significantDigits: double): Decimal; - - /** - * Returns a new Decimal with a random value equal to or greater than 0 and less than 1. - * - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200061 - Crypto unavailable - * @static - * @syscap SystemCapability.Utils.Lang * @since 20 static */ - static randomWithNoArg(): Decimal; - - /** - * Returns a new Decimal with a random value equal to or greater than 0 and less than 1, and with - * `significantDigits` significant digits (or less if trailing zeros are produced). - * - * @param { double } significantDigits Significant digits. Integer, 0 to MAX_DIGITS inclusive. - * @returns { Decimal } the Decimal type - * @throws { BusinessError } 10200061 - Crypto unavailable - * @static - * @syscap SystemCapability.Utils.Lang - * @since 20 static - */ - static randomWithSignificantDigits(significantDigits: double): Decimal; - - /** - * @since 20 static - */ - static overload random { randomWithNoArg, randomWithSignificantDigits }; + static random(significantDigits: double): Decimal; /** * Return the sign of the passed value to the method. -- Gitee