File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
// A Function, which when given an Array of keys, returns a Promise of an Array
12
12
// of values or Errors.
13
- type BatchLoadFn < K , V > =
13
+ export type BatchLoadFn < K , V > =
14
14
( keys : $ReadOnlyArray < K > ) => Promise < $ReadOnlyArray < V | Error >> ;
15
15
16
16
// Optionally turn off batching or caching or provide a cache key function or a
17
17
// custom cache instance.
18
- type Options < K , V > = {
18
+ export type Options < K , V > = {
19
19
batch ?: boolean ;
20
20
maxBatchSize ? : number ;
21
21
cache ? : boolean ;
@@ -24,7 +24,7 @@ type Options<K, V> = {
24
24
} ;
25
25
26
26
// If a custom cache is provided, it must be of this type (a subset of ES6 Map).
27
- type CacheMap < K , V > = {
27
+ export type CacheMap < K , V > = {
28
28
get ( key : K ) : V | void ;
29
29
set ( key : K , value : V ) : any ;
30
30
delete ( key : K ) : any ;
You can’t perform that action at this time.
0 commit comments