Skip to content

Commit 711f935

Browse files
committed
Remove unnecessary Partial type
1 parent aad8a3f commit 711f935

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

polyfill/index.d.ts

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ export namespace Temporal {
114114
offset?: 'use' | 'prefer' | 'ignore' | 'reject' | undefined;
115115
};
116116

117-
export type ZonedDateTimeAssignmentOptions = Partial<
118-
AssignmentOptions & ToInstantOptions & OffsetDisambiguationOptions
119-
>;
117+
export type ZonedDateTimeAssignmentOptions = AssignmentOptions & ToInstantOptions & OffsetDisambiguationOptions;
120118

121119
/**
122120
* Options for arithmetic operations like `add()` and `subtract()`
@@ -187,20 +185,16 @@ export namespace Temporal {
187185
calendarName?: 'auto' | 'always' | 'never' | 'critical' | undefined;
188186
};
189187

190-
export type CalendarTypeToStringOptions = Partial<ToStringPrecisionOptions & ShowCalendarOption>;
188+
export type CalendarTypeToStringOptions = ToStringPrecisionOptions & ShowCalendarOption;
191189

192-
export type ZonedDateTimeToStringOptions = Partial<
193-
CalendarTypeToStringOptions & {
194-
timeZoneName?: 'auto' | 'never' | 'critical' | undefined;
195-
offset?: 'auto' | 'never' | undefined;
196-
}
197-
>;
190+
export type ZonedDateTimeToStringOptions = CalendarTypeToStringOptions & {
191+
timeZoneName?: 'auto' | 'never' | 'critical' | undefined;
192+
offset?: 'auto' | 'never' | undefined;
193+
};
198194

199-
export type InstantToStringOptions = Partial<
200-
ToStringPrecisionOptions & {
201-
timeZone: TimeZoneLike;
202-
}
203-
>;
195+
export type InstantToStringOptions = ToStringPrecisionOptions & {
196+
timeZone?: TimeZoneLike | undefined;
197+
};
204198

205199
/**
206200
* Options to control the result of `until()` and `since()` methods in

0 commit comments

Comments
 (0)