Skip to content

Commit cc0c62b

Browse files
committed
Export flow types
Fixes #124
1 parent d7e918c commit cc0c62b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
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;

0 commit comments

Comments
 (0)