Skip to content

Commit

Permalink
fix linting concern
Browse files Browse the repository at this point in the history
  • Loading branch information
aramissennyeydd committed May 2, 2024
1 parent 3406734 commit 80dae8f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions common/reviews/api/node-core-library.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export class AlreadyReportedError extends Error {
// @public
export class Async {
static forEachAsync<TEntry>(iterable: Iterable<TEntry> | AsyncIterable<TEntry>, callback: (entry: TEntry, arrayIndex: number) => Promise<void>, options?: IAsyncParallelismOptions): Promise<void>;
// (undocumented)
static forEachAsync<TEntry extends IWeightedIterable>(iterable: Iterable<TEntry> | AsyncIterable<TEntry>, callback: (entry: TEntry, arrayIndex: number) => Promise<void>, options: IAsyncParallelismOptions & {
weighted: true;
}): Promise<void>;
Expand Down Expand Up @@ -608,7 +607,6 @@ export interface IWaitForExitWithStringOptions extends IWaitForExitOptions {

// @public (undocumented)
export interface IWeightedIterable {
// (undocumented)
weight: number;
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/node-core-library/src/Async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export interface IRunWithRetriesOptions<TResult> {
export interface IWeightedIterable {
/**
* The weight of the element, used to determine the concurrency units that it will take up.
* Must be a whole number >= 0.
* Must be a whole number greater than or equal to 0.
*/
weight: number;
}
Expand Down

0 comments on commit 80dae8f

Please sign in to comment.