Skip to content

Commit

Permalink
fix(Ix): add a default export to fix node's --experimental-modules be…
Browse files Browse the repository at this point in the history
…havior
  • Loading branch information
trxcllnt committed Oct 2, 2017
1 parent beb40d9 commit 0698577
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Ix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export {
AsyncIterableX as AsyncIterable
};

// Also export default to accommodate quirks of node's `--experimental-modules` mode
export default {
AsyncSink,
Iterable: IterableX,
AsyncIterable: AsyncIterableX
};

export type GroupedIterable<TKey, TValue> = GroupedIterable<TKey, TValue>;
export type OrderedIterable<TKey, TSource> = OrderedIterableX<TKey, TSource>;
export type GroupedAsyncIterable<TKey, TValue> = GroupedAsyncIterable<TKey, TValue>;
Expand Down

0 comments on commit 0698577

Please sign in to comment.