The StreamOptions interface in mysql2/typings/mysql/lib/protocol/sequences/Query.js includes: objectMode: any. However, the library always overwrites the provided value for objectMode to true. So, objectMode can be removed from the interface as it doesn't do anything, or at least its value could be set to true.