-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
getInstances type is incorrect: returns a Promise when callback is unspecified #564
Comments
We need to annotate this client like the way we do with other TypeScript libraries. |
@jkwlui can you link one of the annotated libraries/documentation for the annotation style? I'd be happy to give it a shot this weekend. |
@JustinBeckwith @jkwlui looks like we're missing types across the board for the entire client. Is this something that is being prioritize? There isn't an open issue or anything, but I'd be happy to try and take this if some one isn't already. |
@callmehiphop could we leverage @alexander-fenster's work to auto-generate types with the new micro-generator? |
@bcoe it would help in some aspects like having request/response types mapped out for us. |
We are currently adopting bigtable right now and having the same problem. We have a thin layer of wrapper of our own right now and really hope that this could be prioritized |
Can we do the same for |
Environment details
@google-cloud/bigtable
version: 2.2.1Steps to reproduce
I have code that calls
getInstances
without defining a callback:getInstances
behaves according to its docstring:...but this behavior is not reflected in its generated type, which has return type
void
and no overloads:This mismatch causes eslint to complain because
void
is a non-Promise.Proposal
Declare an overload type:
Thanks!
The text was updated successfully, but these errors were encountered: