- Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
With the current type definition, the result of the following query got.rows[0] would be any.
const got = await connection.execute('SELECT 1, null from dual;'); const row = got.rows[0]; // typeof row is any Therefore, we do not get the benefit of this when developing in TypeScript (properties are not suggested, accessing a property that does not exist, and it becomes undefined).
I think it would be better if we could define a type for row as follows
Metadata
Metadata
Assignees
Labels
No labels
