Skip to content

Commit

Permalink
Export flow types
Browse files Browse the repository at this point in the history
Fixes #124
  • Loading branch information
leebyron committed Jan 30, 2018
1 parent d7e918c commit cc0c62b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

// A Function, which when given an Array of keys, returns a Promise of an Array
// of values or Errors.
type BatchLoadFn<K, V> =
export type BatchLoadFn<K, V> =
(keys: $ReadOnlyArray<K>) => Promise<$ReadOnlyArray<V | Error>>;

// Optionally turn off batching or caching or provide a cache key function or a
// custom cache instance.
type Options<K, V> = {
export type Options<K, V> = {
batch?: boolean;
maxBatchSize?: number;
cache?: boolean;
Expand All @@ -24,7 +24,7 @@ type Options<K, V> = {
};

// If a custom cache is provided, it must be of this type (a subset of ES6 Map).
type CacheMap<K, V> = {
export type CacheMap<K, V> = {
get(key: K): V | void;
set(key: K, value: V): any;
delete(key: K): any;
Expand Down

0 comments on commit cc0c62b

Please sign in to comment.