- Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
Hi! 👋
I updated my Planetscale driver version today and Typescript started generating errors.
After a bit of investigation, it seems that Typescript is seeing that a row can now be an Array or an Object and defaulting to Array (so things like query.rows[0].row_name break, even when specifying as).
It seems to be this line. A row can either be an array or an object and array is preferred so it's underlined red.
Line 7 in 2ca73f8
| type Row = Record<string, any> | any[] |
TheDevMinerTV, Grmiade, iron-cherep and rychlisgiray123 and adamsoutar
Metadata
Metadata
Assignees
Labels
No labels