types / mysql2

Typings for https://github.com/sidorares/node-mysql2
ISC License
41 stars 23 forks source link

RowDataPacket constructor #36

Open ofcRS opened 4 years ago

ofcRS commented 4 years ago

Hello. Sorry, if I don't understand how it works. In d.ts file we have such declaration

declare interface RowDataPacket {
    constructor: {
        name: 'RowDataPacket'
    };
    [column: string]: any;
    [column: number]: any;
}

But actually RowDataPacket is a binaryRow and thus it has same name in constructor. thanks