From 7971f7aed4011ab8feb8d50ccb147f9124719399 Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Thu, 17 Apr 2025 14:28:05 -0700 Subject: [PATCH] Fix type of DurationFormatOptions.localeMatcher I misread the spec text when I wrote this type definition, it should be `lookup` and not `basic`. --- lib/durationformat.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/durationformat.d.ts b/lib/durationformat.d.ts index 73c9645e..6b467340 100644 --- a/lib/durationformat.d.ts +++ b/lib/durationformat.d.ts @@ -10,7 +10,7 @@ declare namespace Intl { type DurationDisplay = 'auto' | 'always'; interface DurationFormatOptions { - localeMatcher?: 'best fit' | 'basic' | undefined; + localeMatcher?: 'best fit' | 'lookup' | undefined; numberingSystem?: string | undefined; style?: 'long' | 'short' | 'narrow' | 'digital' | undefined; years?: DurationCalendarUnitStyle | undefined;