node-google-spreadsheet icon indicating copy to clipboard operation
node-google-spreadsheet copied to clipboard

TS thinks the return type of `GoogleSpreadsheetRow<Row>.get("Column")` is `any` rather than `Row["Column"]`

Open ryanscottaudio opened this issue 11 months ago • 3 comments

That's pretty much it; it's probably because the type signature of GoogleSpreadsheetRow.get is (key: keyof T) => any rather than <K extends keyof T>(key: K) => T[K] or similar.

I could open a PR to update that if it's okay!

ryanscottaudio avatar Jul 26 '23 16:07 ryanscottaudio