Skip to content

Commit

Permalink
docs(streams): rest arguments not being asserted in docs (#6155)
Browse files Browse the repository at this point in the history
  • Loading branch information
efekrskl authored Oct 29, 2024
1 parent 2835dcc commit ff6037a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _tools/check_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,9 @@ function assertFunctionDocs(
if (param.kind === "identifier") {
assertHasParamTag(document, param.name);
}
if (param.kind === "rest" && param.arg.kind === "identifier") {
assertHasParamTag(document, param.arg.name);
}
if (param.kind === "assign" && param.left.kind === "identifier") {
assertHasParamTag(document, param.left.name);
}
Expand Down
1 change: 1 addition & 0 deletions streams/early_zip_readable_streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* even after one of them ends, use {@linkcode zipReadableStreams}.
*
* @typeparam T The type of the chunks in the input streams.
* @param streams An iterable of `ReadableStream`s to merge.
* @returns A `ReadableStream` that will emit the zipped chunks
*
* @example Zip 2 streams with the same length
Expand Down
1 change: 1 addition & 0 deletions streams/zip_readable_streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* the other streams when one of them ends, use {@linkcode earlyZipReadableStreams}.
*
* @typeparam T The type of the chunks in the input/output streams.
* @param streams An iterable of `ReadableStream`s to merge.
* @returns A `ReadableStream` that will emit the zipped chunks.
*
* @example Zip 2 streams with the same length
Expand Down

0 comments on commit ff6037a

Please sign in to comment.