From 30e77c7e3895409f8e490b2523a7140d503204d6 Mon Sep 17 00:00:00 2001 From: Alec Mev Date: Tue, 13 Aug 2024 13:53:32 +0100 Subject: [PATCH] Fix optional property types --- packages/@internationalized/date/src/DateFormatter.ts | 2 +- packages/@react-types/shared/src/dom.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@internationalized/date/src/DateFormatter.ts b/packages/@internationalized/date/src/DateFormatter.ts index 16d808864d3..7767a2d31b7 100644 --- a/packages/@internationalized/date/src/DateFormatter.ts +++ b/packages/@internationalized/date/src/DateFormatter.ts @@ -13,7 +13,7 @@ let formatterCache = new Map(); interface ResolvedDateTimeFormatOptions extends Intl.ResolvedDateTimeFormatOptions { - hourCycle?: Intl.DateTimeFormatOptions['hourCycle'] + hourCycle?: NonNullable } interface DateRangeFormatPart extends Intl.DateTimeFormatPart { diff --git a/packages/@react-types/shared/src/dom.d.ts b/packages/@react-types/shared/src/dom.d.ts index 88fea2c1c13..d0d3fe03e5e 100644 --- a/packages/@react-types/shared/src/dom.d.ts +++ b/packages/@react-types/shared/src/dom.d.ts @@ -59,7 +59,7 @@ export interface DOMProps { /** * The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id). */ - id?: string + id?: string | undefined } export interface FocusableDOMProps extends DOMProps {