Skip to content

Commit

Permalink
feat(exports): move abstract class definitions into subfolders
Browse files Browse the repository at this point in the history
Closes #52 better
  • Loading branch information
trxcllnt committed Oct 30, 2017
1 parent 83ab288 commit d4fc41f
Show file tree
Hide file tree
Showing 441 changed files with 666 additions and 668 deletions.
4 changes: 2 additions & 2 deletions src/Ix.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IterableX } from './iterable';
import { AsyncSink } from './asyncsink';
import { AsyncIterableX } from './asynciterable';
import { IterableX } from './iterable/iterablex';
import { AsyncIterableX } from './asynciterable/asynciterablex';
import { GroupedIterable } from './iterable/groupby';
import { GroupedAsyncIterable } from './asynciterable/groupby';
export { OrderedIterableX as OrderedIterable } from './iterable/orderby';
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/average.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { average } from '../../asynciterable/average';

export function averageProto(
Expand All @@ -21,7 +21,7 @@ export function averageProto(

AsyncIterableX.prototype.average = averageProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
average: typeof averageProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/buffer.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { buffer } from '../../asynciterable/buffer';

/**
Expand All @@ -14,7 +14,7 @@ export function bufferProto<T>(

AsyncIterableX.prototype.buffer = bufferProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
buffer: typeof bufferProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/catch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { _catch as _catchProto } from '../../asynciterable/catch';

/**
Expand All @@ -17,7 +17,7 @@ export declare namespace asynciterable {
let _catch: typeof _catchProto;
}

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
catch: typeof catchProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/catchwith.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { catchWith as catchWithStatic } from '../../asynciterable/catchwith';

/**
Expand All @@ -13,7 +13,7 @@ export function catchWithProto<T>(

AsyncIterableX.prototype.catchWith = catchWithProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
catchWith: typeof catchWithProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/chain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { chain as chainStatic } from '../../asynciterable/chain';

/**
Expand All @@ -13,7 +13,7 @@ export function chainProto<TSource, TResult>(

AsyncIterableX.prototype.chain = chainProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
chain: typeof chainProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/concat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { concat } from '../../asynciterable/concat';

/* tslint:disable:max-line-length */
Expand Down Expand Up @@ -65,7 +65,7 @@ export function concatProto<T>(

AsyncIterableX.prototype.concat = concatProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
concat: typeof concatProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/concatall.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { concatAll } from '../../asynciterable/concatall';

/**
Expand All @@ -10,7 +10,7 @@ export function concatAllProto<T>(this: AsyncIterableX<AsyncIterable<T>>): Async

AsyncIterableX.prototype.concatAll = concatAllProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
concatAll: typeof concatAllProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/count.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { count } from '../../asynciterable/count';

/**
Expand All @@ -13,7 +13,7 @@ export function countProto<T>(

AsyncIterableX.prototype.count = countProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
count: typeof countProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/debounce.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { debounce } from '../../asynciterable/debounce';

/**
Expand All @@ -10,7 +10,7 @@ export function debounceProto<T>(this: AsyncIterableX<T>, time: number): AsyncIt

AsyncIterableX.prototype.debounce = debounceProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
debounce: typeof debounceProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/defaultifempty.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { defaultIfEmpty } from '../../asynciterable/defaultifempty';

/**
Expand All @@ -13,7 +13,7 @@ export function defaultIfEmptyProto<T>(

AsyncIterableX.prototype.defaultIfEmpty = defaultIfEmptyProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
defaultIfEmpty: typeof defaultIfEmptyProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/distinct.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { distinct } from '../../asynciterable/distinct';

/**
Expand All @@ -14,7 +14,7 @@ export function distinctProto<TSource, TKey>(

AsyncIterableX.prototype.distinct = distinctProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
distinct: typeof distinctProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/distinctuntilchanged.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { distinctUntilChanged } from '../../asynciterable/distinctuntilchanged';

/**
Expand All @@ -14,7 +14,7 @@ export function distinctUntilChangedProto<TSource, TKey>(

AsyncIterableX.prototype.distinctUntilChanged = distinctUntilChangedProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
distinctUntilChanged: typeof distinctUntilChangedProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/dowhile.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { doWhile } from '../../asynciterable/dowhile';

/**
Expand All @@ -13,7 +13,7 @@ export function doWhileProto<TSource>(

AsyncIterableX.prototype.doWhile = doWhileProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
doWhile: typeof doWhileProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/elementat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { elementAt } from '../../asynciterable/elementat';

/**
Expand All @@ -10,7 +10,7 @@ export function elementAtProto<T>(this: AsyncIterableX<T>, index: number) {

AsyncIterableX.prototype.elementAt = elementAtProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
elementAt: typeof elementAtProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/endwith.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { endWith } from '../../asynciterable/endwith';

/**
Expand All @@ -10,7 +10,7 @@ export function endWithProto<T>(this: AsyncIterableX<T>, ...args: T[]) {

AsyncIterableX.prototype.endWith = endWithProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
endWith: typeof endWithProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/every.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { every } from '../../asynciterable/every';

/**
Expand All @@ -21,7 +21,7 @@ export function everyProto<T>(

AsyncIterableX.prototype.every = everyProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
every: typeof everyProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/except.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { except } from '../../asynciterable/except';

/**
Expand All @@ -14,7 +14,7 @@ export function exceptProto<TSource>(

AsyncIterableX.prototype.except = exceptProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
except: typeof exceptProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/expand.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { expand } from '../../asynciterable/expand';

/**
Expand All @@ -13,7 +13,7 @@ export function expandProto<TSource>(

AsyncIterableX.prototype.expand = expandProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
expand: typeof expandProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/filter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { filter } from '../../asynciterable/filter';

/**
Expand All @@ -25,7 +25,7 @@ export function filterProto<TSource>(

AsyncIterableX.prototype.filter = filterProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
filter: typeof filterProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/finally.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { _finally as _finallyProto } from '../../asynciterable/finally';

/**
Expand All @@ -17,7 +17,7 @@ export declare namespace asynciterable {
let _finally: typeof _finallyProto;
}

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
finally: typeof finallyProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/find.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { find } from '../../asynciterable/find';

/**
Expand All @@ -25,7 +25,7 @@ export function findProto<T>(

AsyncIterableX.prototype.find = findProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
find: typeof findProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/findindex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { findIndex } from '../../asynciterable/findindex';

/**
Expand All @@ -14,7 +14,7 @@ export function findIndexProto<T>(

AsyncIterableX.prototype.findIndex = findIndexProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
findIndex: typeof findIndexProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/first.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { first } from '../../asynciterable/first';

/**
Expand All @@ -22,7 +22,7 @@ export function firstProto<T>(

AsyncIterableX.prototype.first = firstProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
first: typeof firstProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/flatmap.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { flatMap } from '../../asynciterable/flatmap';

/**
Expand All @@ -14,7 +14,7 @@ export function flatMapProto<TSource, TResult>(

AsyncIterableX.prototype.flatMap = flatMapProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
flatMap: typeof flatMapProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/flatten.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import { flatten } from '../../asynciterable/flatten';

/**
Expand All @@ -10,7 +10,7 @@ export function flattenProto<T>(this: AsyncIterableX<T>, depth?: number): AsyncI

AsyncIterableX.prototype.flatten = flattenProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
flatten: typeof flattenProto;
}
Expand Down
4 changes: 2 additions & 2 deletions src/add/asynciterable-operators/groupby.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AsyncIterableX } from '../../asynciterable';
import { AsyncIterableX } from '../../asynciterable/asynciterablex';
import {
groupBy,
groupByResultIdentityAsync,
Expand Down Expand Up @@ -43,7 +43,7 @@ export function groupByProto<TSource, TKey, TValue, TResult>(

AsyncIterableX.prototype.groupBy = groupByProto;

declare module '../../asynciterable' {
declare module '../../asynciterable/asynciterablex' {
interface AsyncIterableX<T> {
groupBy: typeof groupByProto;
}
Expand Down
Loading

0 comments on commit d4fc41f

Please sign in to comment.