@@ -55,7 +55,6 @@ export type CalendarSlot = string | Temporal.CalendarProtocol;
55
55
export type TimeZoneSlot = string | Temporal . TimeZoneProtocol ;
56
56
57
57
// Used in AnyTemporalLikeType
58
- // ts-prune-ignore-next
59
58
type AllTemporalLikeTypes = [
60
59
Temporal . DurationLike ,
61
60
Temporal . PlainDateLike ,
@@ -78,7 +77,6 @@ export type FieldKey = Exclude<AnyTemporalKey, Keys<Temporal.DurationLike>>;
78
77
// `timeZone` and `calendar` are not on the list because they have special methods to set them.
79
78
80
79
// Used in PrimitiveFieldsOf
81
- // ts-prune-ignore-next
82
80
type PrimitivePropertyNames =
83
81
| 'year'
84
82
| 'month'
@@ -126,16 +124,9 @@ export type UnitSmallerThanOrEqualTo<T extends Temporal.DateTimeUnit> = T extend
126
124
? 'nanosecond'
127
125
: never ;
128
126
129
- // ts-prune complains about the type definitions below, even though they're used
130
- // by exported types Not sure why and don't have time to investigate, so just
131
- // disabling the warnings for now.
132
-
133
- // ts-prune-ignore-next
134
127
type Method = ( ...args : any ) => any ;
135
- // ts-prune-ignore-next
136
128
type NonObjectKeys < T > = Exclude < keyof T , 'toString' | 'toLocaleString' | 'prototype' > ;
137
129
138
- // ts-prune-ignore-next
139
130
type MethodParams < Type extends new ( ...args : any ) => any > = {
140
131
// constructor parameters
141
132
constructor : ConstructorParameters < Type > ;
@@ -149,7 +140,6 @@ type MethodParams<Type extends new (...args: any) => any> = {
149
140
: never ;
150
141
} ;
151
142
152
- // ts-prune-ignore-next
153
143
type MethodReturn < Type extends new ( ...args : any ) => any > = {
154
144
constructor : InstanceType < Type > ;
155
145
} & {
@@ -166,7 +156,6 @@ type InterfaceReturn<Type> = {
166
156
};
167
157
*/
168
158
169
- // ts-prune-ignore-next
170
159
type InterfaceParams < Type > = {
171
160
[ Key in keyof Type ] : Type [ Key ] extends Method ? Parameters < Type [ Key ] > : never ;
172
161
} ;
@@ -209,11 +198,10 @@ export interface CalendarProtocolParams extends InterfaceParams<Temporal.Calenda
209
198
export interface DateTimeFormatParams extends MethodParams < typeof Intl . DateTimeFormat > { }
210
199
export interface DateTimeFormatReturn extends MethodReturn < typeof Intl . DateTimeFormat > { }
211
200
212
- // ts-prune-ignore-next
213
201
type OptionsAmenderFunction = ( options : Intl . DateTimeFormatOptions ) => globalThis . Intl . DateTimeFormatOptions ;
214
- type FormatterOrAmender = globalThis . Intl . DateTimeFormat | OptionsAmenderFunction ;
202
+ export type FormatterOrAmender = globalThis . Intl . DateTimeFormat | OptionsAmenderFunction ;
215
203
216
- interface ISODateTime {
204
+ export interface ISODateTime {
217
205
year : number ;
218
206
month : number ;
219
207
day : number ;
@@ -225,10 +213,13 @@ interface ISODateTime {
225
213
nanosecond : number ;
226
214
}
227
215
228
- interface InternalDuration {
216
+ export interface InternalDuration {
229
217
years : number ;
230
218
months : number ;
231
219
weeks : number ;
232
220
days : number ;
233
221
norm : TimeDuration ;
234
222
}
223
+
224
+ // Signal to TypeScript that not everything should be exported by default
225
+ export { } ;
0 commit comments