From cc0c62b8b64d8f6f13d0afacdfa457a4c15ef013 Mon Sep 17 00:00:00 2001 From: Lee Byron Date: Tue, 30 Jan 2018 13:38:19 -0800 Subject: [PATCH] Export flow types Fixes #124 --- src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index baf03f6..09b22d3 100644 --- a/src/index.js +++ b/src/index.js @@ -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 = +export type BatchLoadFn = (keys: $ReadOnlyArray) => Promise<$ReadOnlyArray>; // Optionally turn off batching or caching or provide a cache key function or a // custom cache instance. -type Options = { +export type Options = { batch?: boolean; maxBatchSize?: number; cache?: boolean; @@ -24,7 +24,7 @@ type Options = { }; // If a custom cache is provided, it must be of this type (a subset of ES6 Map). -type CacheMap = { +export type CacheMap = { get(key: K): V | void; set(key: K, value: V): any; delete(key: K): any;