@@ -97,8 +97,8 @@ export type Index = number & { [TYPE]: 'LRUCache Index' }
97
97
const isPosInt = ( n : any ) : n is PosInt =>
98
98
n && n === Math . floor ( n ) && n > 0 && isFinite ( n )
99
99
100
- type UintArray = Uint8Array | Uint16Array | Uint32Array
101
- type NumberArray = UintArray | number [ ]
100
+ export type UintArray = Uint8Array | Uint16Array | Uint32Array
101
+ export type NumberArray = UintArray | number [ ]
102
102
103
103
/* c8 ignore start */
104
104
// This is a little bit ridiculous, tbh.
@@ -129,8 +129,9 @@ class ZeroArray extends Array<number> {
129
129
this . fill ( 0 )
130
130
}
131
131
}
132
+ export type { ZeroArray }
132
133
133
- type StackLike = Stack | Index [ ]
134
+ export type StackLike = Stack | Index [ ]
134
135
class Stack {
135
136
heap : NumberArray
136
137
length : number
@@ -163,6 +164,7 @@ class Stack {
163
164
return this . heap [ -- this . length ] as Index
164
165
}
165
166
}
167
+ export type { Stack }
166
168
167
169
/**
168
170
* Promise representing an in-progress {@link LRUCache#fetch} call
@@ -173,7 +175,7 @@ export type BackgroundFetch<V> = Promise<V | undefined> & {
173
175
__staleWhileFetching : V | undefined
174
176
}
175
177
176
- type DisposeTask < K , V > = [
178
+ export type DisposeTask < K , V > = [
177
179
value : V ,
178
180
key : K ,
179
181
reason : LRUCache . DisposeReason
@@ -377,7 +379,7 @@ export namespace LRUCache {
377
379
* {@link OptionsBase.noDeleteOnFetchRejection},
378
380
* {@link OptionsBase.allowStaleOnFetchRejection},
379
381
* {@link FetchOptions.forceRefresh}, and
380
- * {@link OptionsBase .context}
382
+ * {@link FetcherOptions .context}
381
383
*
382
384
* Any of these may be modified in the {@link OptionsBase.fetchMethod}
383
385
* function, but the {@link GetOptions} fields will of course have no
0 commit comments