docs(streams): rest arguments not being asserted in docs (#6155)

This commit is contained in:
Efe 2024-10-29 06:24:18 +01:00 committed by GitHub
parent 2835dccdd0
commit ff6037adf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View File

@ -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);
}

View File

@ -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

View File

@ -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