We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0c62b commit a95673cCopy full SHA for a95673c
src/index.js
@@ -41,7 +41,7 @@ export type CacheMap<K, V> = {
41
* different access permissions and consider creating a new instance per
42
* web request.
43
*/
44
-export default class DataLoader<K, V> {
+class DataLoader<K, V> {
45
constructor(
46
batchLoadFn: BatchLoadFn<K, V>,
47
options?: Options<K, V>
@@ -337,3 +337,5 @@ type LoaderQueue<K, V> = Array<{
337
resolve: (value: V) => void;
338
reject: (error: Error) => void;
339
}>;
340
+
341
+module.exports = DataLoader;
0 commit comments