-
Notifications
You must be signed in to change notification settings - Fork 72
/
Ix.internal.ts
34 lines (31 loc) · 1.21 KB
/
Ix.internal.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* `/index` required for closure compiler */
import * as iterableX from './iterable/index';
import * as iterableXPipe from './iterable/pipe/index';
import * as asynciterableX from './asynciterable/index';
import * as asynciterableXPipe from './asynciterable/pipe/index';
export { iterableX as iterable };
export { iterableXPipe as iterablePipe };
export { asynciterableX as asynciterable };
export { asynciterableXPipe as asynciterablePipe };
import './add/asynciterable/fromnodestream';
import { fromNodeStream, ReadableStreamAsyncIterable } from './asynciterable/fromnodestream';
export { fromNodeStream, ReadableStreamAsyncIterable };
/* These declarations are needed for the closure/umd targets */
export declare namespace Symbol {
export const iterator: symbol;
export const asyncIterator: symbol;
}
try {
const Ix = eval('exports');
if (typeof Ix === 'object') {
// string indexers tell closure compiler not to rename these properties
Ix['iterable'] = iterableX;
Ix['iterablePipe'] = iterableXPipe;
Ix['asynciterable'] = asynciterableX;
Ix['asynciterablePipe'] = asynciterableXPipe;
Ix['fromNodeStream'] = fromNodeStream;
}
} catch (e) {
/* not the UMD bundle */
}
/** end google declarations */