Closed mgummelt closed 3 years ago
When fetching FieldPackets from a query, I'm observing that packet.type is undefined, in violation of its type: https://github.com/sidorares/node-mysql2/blob/master/typings/mysql/lib/protocol/packets/FieldPacket.d.ts#L18
FieldPacket
packet.type
Example code:
$ const [res, fields] = await conn.execute<RowDataPacket[]>(sql); $ fields[0].type undefined
When fetching
FieldPacket
s from a query, I'm observing thatpacket.type
is undefined, in violation of its type: https://github.com/sidorares/node-mysql2/blob/master/typings/mysql/lib/protocol/packets/FieldPacket.d.ts#L18Example code: