This is not a bug but more of an annoying issue. Upon generating the TypeScript file, there is an issue where row might be undefined during const row = result.rows[0];. One simple solution would be to typecast by editing the generated file, but it is not really ideal. Would there be a better solution to this?
