Skip to content

Commit c091f1b

Browse files
minzunimwellwelwel
andauthored
fix(types): restrict StreamOptions.objectMode to true (#3686) (#3784)
* fix(types): restrict StreamOptions.objectMode to true (#3686) * Update typings/mysql/lib/protocol/sequences/Query.d.ts --------- Co-authored-by: Weslley Araújo <46850407+wellwelwel@users.noreply.github.com>
1 parent aac1b0f commit c091f1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

typings/mysql/lib/protocol/sequences/Query.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ export interface StreamOptions {
9292
highWaterMark?: number;
9393

9494
/**
95-
* The object mode of the stream (Default: true)
95+
* The object mode of the stream is always set to `true`
9696
*/
97-
objectMode?: any;
97+
objectMode?: true;
9898
}
9999

100100
export interface QueryError extends NodeJS.ErrnoException {

0 commit comments

Comments
 (0)