Skip to content

Commit

Permalink
Fix CreateIteratorContext n documentation (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
nev21 authored Feb 15, 2024
1 parent 7cc0dbe commit 8f43a94
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
8 changes: 4 additions & 4 deletions docs/typedoc/assets/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/typedoc/functions/createIterable.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/typedoc/functions/createIterator.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/typedoc/functions/makeIterable.html

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions docs/typedoc/interfaces/CreateIteratorContext.html

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions lib/src/iterator/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ import { WellKnownSymbols } from "../symbol/well_known";
export interface CreateIteratorContext<T> {
/**
* A function that returns a boolean to indicate whether it was able to produce
* the next value in the sequence.
* the next value in the sequence. It should return `true` when the sequence is done.
* @param args - Optional additional arguments that where passed to the iterator `next` function.
* @return `true` if a new value was produced and assigned to the `v` of the context, otherwise `false`
* @return `false` if a new value was produced and assigned to the `v` of the context, otherwise
* `true` to indicate that the sequence is done.
*/
n: (...args: any) => boolean;

Expand Down

0 comments on commit 8f43a94

Please sign in to comment.