mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
lib,tools: remove empty lines between JSDoc tags
This is in preparation for enabling a recommended JSDoc lint rule. PR-URL: https://github.com/nodejs/node/pull/41147 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
c486da1715
commit
f176124e8b
7 files changed
+63
-25
No files matched your search
@@ -123,7 +123,9 @@ function getSource(source, endings) {
|
||||
class Blob {
|
||||
/**
|
||||
* @typedef {string|ArrayBuffer|ArrayBufferView|Blob} SourcePart
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {SourcePart[]} [sources]
|
||||
* @param {{
|
||||
* endings? : string,
|
||||
|
||||
@@ -79,7 +79,9 @@ const { UV_EOF } = internalBinding('uv');
|
||||
* @typedef {import('../../stream').Readable} Readable
|
||||
* @typedef {import('./writablestream').WritableStream} WritableStream
|
||||
* @typedef {import('./readablestream').ReadableStream} ReadableStream
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {import('../abort_controller').AbortSignal} AbortSignal
|
||||
*/
|
||||
|
||||
@@ -525,7 +527,9 @@ function newStreamReadableFromReadableStream(readableStream, options = {}) {
|
||||
* @typedef {import('./readablestream').ReadableWritablePair
|
||||
* } ReadableWritablePair
|
||||
* @typedef {import('../../stream').Duplex} Duplex
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {Duplex} duplex
|
||||
* @returns {ReadableWritablePair}
|
||||
*/
|
||||
|
||||
@@ -38,7 +38,9 @@ const isCountQueuingStrategy =
|
||||
* @callback QueuingStrategySize
|
||||
* @param {any} chunk
|
||||
* @returns {number}
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* highWaterMark : number,
|
||||
* size? : QueuingStrategySize,
|
||||
|
||||
@@ -140,37 +140,53 @@ const kPull = Symbol('kPull');
|
||||
* @typedef {import('./queuingstrategies').QueuingStrategySize
|
||||
* } QueuingStrategySize
|
||||
* @typedef {import('./writablestream').WritableStream} WritableStream
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {ReadableStreamDefaultController | ReadableByteStreamController
|
||||
* } ReadableStreamController
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {ReadableStreamDefaultReader | ReadableStreamBYOBReader
|
||||
* } ReadableStreamReader
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSourceStartCallback
|
||||
* @param {ReadableStreamController} controller
|
||||
* @returns { any | Promise<void> }
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSourcePullCallback
|
||||
* @param {ReadableStreamController} controller
|
||||
* @returns { Promise<void> }
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSourceCancelCallback
|
||||
* @param {any} reason
|
||||
* @returns { Promise<void> }
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* readable: ReadableStream,
|
||||
* writable: WritableStream,
|
||||
* }} ReadableWritablePair
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* preventClose? : boolean,
|
||||
* preventAbort? : boolean,
|
||||
* preventCancel? : boolean,
|
||||
* signal? : AbortSignal,
|
||||
* }} StreamPipeOptions
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* start? : UnderlyingSourceStartCallback,
|
||||
* pull? : UnderlyingSourcePullCallback,
|
||||
@@ -178,7 +194,6 @@ const kPull = Symbol('kPull');
|
||||
* type? : "bytes",
|
||||
* autoAllocateChunkSize? : number
|
||||
* }} UnderlyingSource
|
||||
*
|
||||
*/
|
||||
|
||||
class ReadableStream {
|
||||
|
||||
@@ -70,19 +70,27 @@ const assert = require('internal/assert');
|
||||
* } QueuingStrategy
|
||||
* @typedef {import('./queuingstrategies').QueuingStrategySize
|
||||
* } QueuingStrategySize
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback TransformerStartCallback
|
||||
* @param {TransformStreamDefaultController} controller;
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback TransformerFlushCallback
|
||||
* @param {TransformStreamDefaultController} controller;
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback TransformerTransformCallback
|
||||
* @param {any} chunk
|
||||
* @param {TransformStreamDefaultController} controller
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* start? : TransformerStartCallback,
|
||||
* transform? : TransformerTransformCallback,
|
||||
|
||||
@@ -83,22 +83,32 @@ const kError = Symbol('kError');
|
||||
* } QueuingStrategy
|
||||
* @typedef {import('./queuingstrategies').QueuingStrategySize
|
||||
* } QueuingStrategySize
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSinkStartCallback
|
||||
* @param {WritableStreamDefaultController} controller
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSinkWriteCallback
|
||||
* @param {any} chunk
|
||||
* @param {WritableStreamDefaultController} controller
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSinkCloseCallback
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @callback UnderlyingSinkAbortCallback
|
||||
* @param {any} reason
|
||||
* @returns {Promise<void>}
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* start? : UnderlyingSinkStartCallback,
|
||||
* write? : UnderlyingSinkWriteCallback,
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
/**
|
||||
* @fileoverview Check that common.hasCrypto is used if crypto, tls,
|
||||
* https, or http2 modules are required.
|
||||
*
|
||||
* This rule can be ignored using // eslint-disable-line crypto-check
|
||||
*
|
||||
* @author Daniel Bevenius <daniel.bevenius@gmail.com>
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
Reference in new issue
Block a user