We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7e918c commit cc0c62bCopy full SHA for cc0c62b
1 file changed
src/index.js
@@ -10,12 +10,12 @@
10
11
// A Function, which when given an Array of keys, returns a Promise of an Array
12
// of values or Errors.
13
-type BatchLoadFn<K, V> =
+export type BatchLoadFn<K, V> =
14
(keys: $ReadOnlyArray<K>) => Promise<$ReadOnlyArray<V | Error>>;
15
16
// Optionally turn off batching or caching or provide a cache key function or a
17
// custom cache instance.
18
-type Options<K, V> = {
+export type Options<K, V> = {
19
batch?: boolean;
20
maxBatchSize?: number;
21
cache?: boolean;
@@ -24,7 +24,7 @@ type Options<K, V> = {
24
};
25
26
// If a custom cache is provided, it must be of this type (a subset of ES6 Map).
27
-type CacheMap<K, V> = {
+export type CacheMap<K, V> = {
28
get(key: K): V | void;
29
set(key: K, value: V): any;
30
delete(key: K): any;
0 commit comments