You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
901
901
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
902
-
* @param [encoding='utf8'] The encoding, if `chunk` is a string.
903
902
* @param callback Callback for when this chunk of data is flushed.
904
903
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
* Writes data to the stream, with an explicit encoding for string data.
908
+
* @see {@link Writable.write} for full details.
909
+
* @since v0.9.4
910
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
911
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
912
+
* @param encoding The encoding, if `chunk` is a string.
913
+
* @param callback Callback for when this chunk of data is flushed.
914
+
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
Copy file name to clipboardExpand all lines: types/node/v20/stream.d.ts
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -865,11 +865,20 @@ declare module "stream" {
865
865
* @since v0.9.4
866
866
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
867
867
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
868
-
* @param [encoding='utf8'] The encoding, if `chunk` is a string.
869
868
* @param callback Callback for when this chunk of data is flushed.
870
869
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
* Writes data to the stream, with an explicit encoding for string data.
874
+
* @see {@link Writable.write} for full details.
875
+
* @since v0.9.4
876
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
877
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
878
+
* @param encoding The encoding, if `chunk` is a string.
879
+
* @param callback Callback for when this chunk of data is flushed.
880
+
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
Copy file name to clipboardExpand all lines: types/node/v22/stream.d.ts
+27-4Lines changed: 27 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -858,11 +858,20 @@ declare module "stream" {
858
858
* @since v0.9.4
859
859
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
860
860
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
861
-
* @param [encoding='utf8'] The encoding, if `chunk` is a string.
862
861
* @param callback Callback for when this chunk of data is flushed.
863
862
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
* Writes data to the stream, with an explicit encoding for string data.
867
+
* @see {@link Writable.write} for full details.
868
+
* @since v0.9.4
869
+
* @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a {string}, {Buffer},
870
+
* {TypedArray} or {DataView}. For object mode streams, `chunk` may be any JavaScript value other than `null`.
871
+
* @param encoding The encoding, if `chunk` is a string.
872
+
* @param callback Callback for when this chunk of data is flushed.
873
+
* @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`.
0 commit comments