Skip to content

Commit e4efa6a

Browse files
fix: apply code review
- type var change to pascal case - type change to partial type
1 parent 365881c commit e4efa6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/esnext.intl.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ declare namespace Intl {
5454
*
5555
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/DurationFormat#fractionaldigits).
5656
*/
57-
type fractionalDigitsOption = 0|1|2|3|4|5|6|7|8|9
57+
type FractionalDigitsOption = 0|1|2|3|4|5|6|7|8|9
5858

5959
interface ResolvedDurationFormatOptions {
6060
locale?: UnicodeBCP47LocaleIdentifier
@@ -80,7 +80,7 @@ declare namespace Intl {
8080
microsecondsDisplay?: DurationFormatDisplayOption
8181
nanosecond?: DurationFormatOptions
8282
nanosecondDisplay?: DurationFormatDisplayOption
83-
fractionalDigits?: fractionalDigitsOption
83+
fractionalDigits?: FractionalDigitsOption
8484
}
8585

8686
interface DurationFormatOptions {
@@ -107,15 +107,15 @@ declare namespace Intl {
107107
microsecondsDisplay?: DurationFormatDisplayOption
108108
nanosecond?: DurationFormatOption
109109
nanosecondDisplay?: DurationFormatDisplayOption
110-
fractionalDigits?: fractionalDigitsOption
110+
fractionalDigits?: FractionalDigitsOption
111111
}
112112

113113
/**
114114
* The duration object to be formatted
115115
*
116116
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DurationFormat/format#duration).
117117
*/
118-
type DurationType = Record<DurationTimeFormatUnit,number>
118+
type DurationType = Partial<Record<DurationTimeFormatUnit,number>>
119119

120120
interface DurationFormat {
121121
/**

0 commit comments

Comments
 (0)