Skip to content

Commit

Permalink
Fix optional property types
Browse files Browse the repository at this point in the history
  • Loading branch information
alecmev committed Aug 24, 2024
1 parent dcf312b commit 30e77c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@internationalized/date/src/DateFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
let formatterCache = new Map<string, Intl.DateTimeFormat>();

interface ResolvedDateTimeFormatOptions extends Intl.ResolvedDateTimeFormatOptions {
hourCycle?: Intl.DateTimeFormatOptions['hourCycle']
hourCycle?: NonNullable<Intl.DateTimeFormatOptions['hourCycle']>
}

interface DateRangeFormatPart extends Intl.DateTimeFormatPart {
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-types/shared/src/dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30e77c7

Please sign in to comment.