@@ -97,8 +97,8 @@ export type Index = number & { [TYPE]: 'LRUCache Index' }
9797const isPosInt = ( n : any ) : n is PosInt =>
9898 n && n === Math . floor ( n ) && n > 0 && isFinite ( n )
9999
100- type UintArray = Uint8Array | Uint16Array | Uint32Array
101- type NumberArray = UintArray | number [ ]
100+ export type UintArray = Uint8Array | Uint16Array | Uint32Array
101+ export type NumberArray = UintArray | number [ ]
102102
103103/* c8 ignore start */
104104// This is a little bit ridiculous, tbh.
@@ -129,8 +129,9 @@ class ZeroArray extends Array<number> {
129129 this . fill ( 0 )
130130 }
131131}
132+ export type { ZeroArray }
132133
133- type StackLike = Stack | Index [ ]
134+ export type StackLike = Stack | Index [ ]
134135class Stack {
135136 heap : NumberArray
136137 length : number
@@ -163,6 +164,7 @@ class Stack {
163164 return this . heap [ -- this . length ] as Index
164165 }
165166}
167+ export type { Stack }
166168
167169/**
168170 * Promise representing an in-progress {@link LRUCache#fetch} call
@@ -173,7 +175,7 @@ export type BackgroundFetch<V> = Promise<V | undefined> & {
173175 __staleWhileFetching : V | undefined
174176}
175177
176- type DisposeTask < K , V > = [
178+ export type DisposeTask < K , V > = [
177179 value : V ,
178180 key : K ,
179181 reason : LRUCache . DisposeReason
@@ -377,7 +379,7 @@ export namespace LRUCache {
377379 * {@link OptionsBase.noDeleteOnFetchRejection},
378380 * {@link OptionsBase.allowStaleOnFetchRejection},
379381 * {@link FetchOptions.forceRefresh}, and
380- * {@link OptionsBase .context}
382+ * {@link FetcherOptions .context}
381383 *
382384 * Any of these may be modified in the {@link OptionsBase.fetchMethod}
383385 * function, but the {@link GetOptions} fields will of course have no
0 commit comments