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 1010
1111// A Function, which when given an Array of keys, returns a Promise of an Array
1212// of values or Errors.
13- type BatchLoadFn < K , V > =
13+ export type BatchLoadFn < K , V > =
1414 ( keys : $ReadOnlyArray < K > ) => Promise < $ReadOnlyArray < V | Error >> ;
1515
1616// Optionally turn off batching or caching or provide a cache key function or a
1717// custom cache instance.
18- type Options < K , V > = {
18+ export type Options < K , V > = {
1919 batch ?: boolean ;
2020 maxBatchSize ? : number ;
2121 cache ? : boolean ;
@@ -24,7 +24,7 @@ type Options<K, V> = {
2424} ;
2525
2626// 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 > = {
2828 get ( key : K ) : V | void ;
2929 set ( key : K , value : V ) : any ;
3030 delete ( key : K ) : any ;
You can’t perform that action at this time.
0 commit comments