Skip to content

Commit 7bc3812

Browse files
committed
Remove comments from private files. These are not exposed unless you import them directly which is not supported anyway.
1 parent 28b591a commit 7bc3812

234 files changed

Lines changed: 3 additions & 2023 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/async/_private/aggregate.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,13 @@
11
import { ErrorString, InvalidOperationException } from "../../shared"
22

33
type AggregateFunc = {
4-
/**
5-
* Applies an accumulator function over a sequence.
6-
* @param source An AsyncIterable<T> to aggregate over.
7-
* @param func An accumulator function to be invoked on each element.
8-
* @returns The final accumulator value.
9-
*/
104
<TSource>(
115
source: AsyncIterable<TSource>,
126
func: (x: TSource, y: TSource) => TSource): Promise<TSource>
13-
/**
14-
* Applies an accumulator function over a sequence.
15-
* The specified seed value is used as the initial accumulator value.
16-
* @param source An AsyncIterable<T> to aggregate over.
17-
* @param seed The initial accumulator value.
18-
* @param func An accumulator function to be invoked on each element.
19-
* @returns The final accumulator value.
20-
*/
217
<TSource, TAccumulate>(
228
source: AsyncIterable<TSource>,
239
seed: TAccumulate,
2410
func: (x: TAccumulate, y: TSource) => TAccumulate): Promise<TAccumulate>
25-
/**
26-
* Applies an accumulator function over a sequence.
27-
* The specified seed value is used as the initial accumulator value,
28-
* and the specified function is used to select the result value.
29-
* @param source An AsyncIterable<T> to aggregate over.
30-
* @param seed The initial accumulator value.
31-
* @param func An accumulator function to be invoked on each element.
32-
* @param resultSelector A function to transform the final accumulator value into the result value.
33-
* @returns The transformed final accumulator value.
34-
*/
3511
<TSource, TAccumulate, TResult>(
3612
source: AsyncIterable<TSource>,
3713
seed: TAccumulate,

src/async/_private/all.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Determines whether all elements of a sequence satisfy a condition.
3-
* @param source An AsyncIterable<T> that contains the elements to apply the predicate to.
4-
* @param predicate A function to test each element for a condition.
5-
* @returns ``true`` if every element of the source sequence passes the test in the specified predicate,
6-
* or if the sequence is empty; otherwise, ``false``.
7-
*/
81
export const all = async <TSource>(
92
source: AsyncIterable<TSource>,
103
predicate: (x: TSource) => boolean): Promise<boolean> => {

src/async/_private/allAsync.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/**
2-
* Determines whether all elements of a sequence satisfy a condition.
3-
* @param source An AsyncIterable<T> that contains the elements to apply the predicate to.
4-
* @param predicate A function to test each element for a condition.
5-
* @returns Whether all elements of a sequence satisfy the condition.
6-
*/
71
export const allAsync = async <TSource>(
82
source: AsyncIterable<TSource>,
93
predicate: (x: TSource) => Promise<boolean>): Promise<boolean> => {

src/async/_private/any.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
/**
2-
* Determines whether a sequence contains any elements.
3-
* If predicate is specified, determines whether any element of a sequence satisfies a condition.
4-
* @param source The AsyncIterable<T> to check for emptiness or apply the predicate to.
5-
* @param predicate A function to test each element for a condition.
6-
* @returns ``true`` if every element of the source sequence passes the test in the specified predicate,
7-
* or if the sequence is empty; otherwise, ``false``.
8-
*/
91
export const any = <TSource>(
102
source: AsyncIterable<TSource>,
113
predicate?: (x: TSource) => boolean): Promise<boolean> => {

src/async/_private/anyAsync.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Determines whether any element of a sequence satisfies a condition.
3-
* @param source An AsyncIterable<T> whose elements to apply the predicate to.
4-
* @param predicate A function to test each element for a condition.
5-
* @returns ``true`` if every element of the source sequence passes the test in the specified predicate,
6-
* or if the sequence is empty; otherwise, ``false``.
7-
*/
81
export const anyAsync = async <TSource>(
92
source: AsyncIterable<TSource>,
103
predicate: (x: TSource) => Promise<boolean>

src/async/_private/asParallel.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import { fromParallel } from "../../parallel/static/fromParallel"
22
import { IParallelEnumerable, ParallelGeneratorType } from "../../types"
33

4-
/**
5-
* Converts an async iterable to a Parallel Enumerable.
6-
* @param source AsyncIterable<T> to convert to IParallelEnumerable<T>
7-
* @returns Parallel Enumerable of source
8-
*/
94
export const asParallel = <TSource>(source: AsyncIterable<TSource>): IParallelEnumerable<TSource> => {
105
const generator = async () => {
116
const data = []

src/async/_private/average.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
import { ErrorString, InvalidOperationException } from "../../shared"
22

33
type AverageFunc = {
4-
/**
5-
* Computes the average of a sequence of number values.
6-
* @param source A sequence of values to calculate the average of.
7-
* @throws {InvalidOperationException} source contains no elements.
8-
*/
94
(source: AsyncIterable<number>): Promise<number>
10-
/**
11-
* Computes the average of a sequence of values
12-
* that are obtained by invoking a transform function on each element of the input sequence.
13-
* @param source A sequence of values to calculate the average of.
14-
* @param selector A transform function to apply to each element.
15-
* @throws {InvalidOperationException} source contains no elements.
16-
*/
175
<TSource>(source: AsyncIterable<TSource>, selector: (x: TSource) => number): Promise<number>
186
}
197

src/async/_private/averageAsync.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import { ErrorString, InvalidOperationException } from "../../shared"
22

3-
/**
4-
* Computes the average of a sequence of values
5-
* that are obtained by invoking an async transform function on each element of the input sequence.
6-
* @param source A sequence of values to calculate the average of.
7-
* @param selector A transform function to apply to each element.
8-
* @throws {InvalidOperationException} source contains no elements.
9-
* @returns The average value (from the selector) of the specified async sequence
10-
*/
113
export const averageAsync = async <TSource>(
124
source: AsyncIterable<TSource>,
135
selector: (x: TSource) => Promise<number>): Promise<number> => {

src/async/_private/concatenate.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import { IAsyncEnumerable } from "../../types"
22
import { BasicAsyncEnumerable } from "../BasicAsyncEnumerable"
33

4-
/**
5-
* Concatenates two sequences.
6-
* @param first The first sequence to concatenate.
7-
* @param second The sequence to concatenate to the first sequence.
8-
* @returns An IAsyncEnumerable<T> that contains the concatenated elements of the two input sequences.
9-
*/
104
export const concatenate = <TSource>(
115
first: AsyncIterable<TSource>, second: AsyncIterable<TSource>): IAsyncEnumerable<TSource> => {
126
async function* iterator() {

src/async/_private/contains.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import { StrictEqualityComparer } from "../../shared"
22
import { IEqualityComparer } from "../../types"
33

4-
/**
5-
* Determines whether a sequence contains a specified element by using the specified or default IEqualityComparer<T>.
6-
* @param source A sequence in which to locate a value.
7-
* @param value The value to locate in the sequence.
8-
* @param comparer An equality comparer to compare values. Optional.
9-
* @returns Whether a sequence contains a specified element
10-
*/
114
export const contains = async <TSource>(
125
source: AsyncIterable<TSource>,
136
value: TSource,

0 commit comments

Comments
 (0)