Request to remove wildcard type from Datastore instances #791
Labels
api: datastore
Issues related to the googleapis/nodejs-datastore API.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
The issue
The Datastore instance inherits from DatastoreRequest which among other things contain:
This is a problem when dealing with typos since the return types are
any
all code following still compiles without warning.Example:
Request
Since my knowledge of how the class works is very limited I'm not sure if it's possible but it would be nice if obvious errors like the one I showed are caught at write-time by having stricter types.
The text was updated successfully, but these errors were encountered: