From 7bf76835b59c3993eb50b6e1265d1289296d14ed Mon Sep 17 00:00:00 2001 From: HJ Date: Tue, 29 Apr 2025 15:55:51 +0800 Subject: [PATCH] chore: string also allows as args in Intl.NumberFormat.format https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/format#parameters --- src/lib/es2020.bigint.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/es2020.bigint.d.ts b/src/lib/es2020.bigint.d.ts index f1f3282306136..7fbcee434456b 100644 --- a/src/lib/es2020.bigint.d.ts +++ b/src/lib/es2020.bigint.d.ts @@ -742,6 +742,6 @@ interface DataView { declare namespace Intl { interface NumberFormat { - format(value: number | bigint): string; + format(value: number | bigint | string): string; } }