Closed laurentgoudet closed 4 years ago
Greetings @garyo! That is the one module that likely won't be getting types 😬 I would highly recommend using https://github.com/googleapis/google-api-nodejs-client instead.
I see, thanks @JustinBeckwith . I'll check out this new module. If that old module is deprecated (?) then maybe something in the README would be useful. There's a lot of examples floating around out there using @google-cloud/compute
.
Hmm, just looking at google-api-nodejs-client
, there's no doc for compute
at all... see https://googleapis.dev/nodejs/googleapis/latest -- should I file an issue there?
Yeah, it's not deprecated as of now, but there's so much code it would take a very, very long time to support types. On the samples - great point! Before we even considered deprecating that module, we would need to have a plan in place.
Folks - I think we're ready to call this one :) There may be one or two stragglers out there, but we should be able to follow up as needed with package specific bugs. Thanks for being patient here! And please do let us know if we missed anything.
Great work @JustinBeckwith and team -- really appreciate it
@alexander-fenster, @xiaozhenliu-gg5, @summer-ji-eng, @bcoe, @jkwlui did all the real work 🙃
@garyo did you open an issue about the missing compute
documentation on google-api-nodejs-client
? I'd like to follow that
Yes, it's https://github.com/googleapis/google-api-nodejs-client/issues/1915 -- still open.
@JustinBeckwith wrote:
Greetings @garyo! That is the one module that likely won't be getting types 😬 I would highly recommend using https://github.com/googleapis/google-api-nodejs-client instead.
Just saw something you may find interesting: https://github.com/googleapis/nodejs-compute/pull/534 -- It looks like it adds type decls to the compute module googleapis/nodejs-compute
.
How can I import types for cloud-vision? I can't find a way to do it. Seems it's all not exported :/
@moreiravictor what have you tried?
@JustinBeckwith tried importing it from @google-cloud/vision module
UPDATE: We are going to do this across the board. We will use this issue to track each repository.
Now that TypeScript has a much better support for the npm ecosystem (https://github.com/Microsoft/TypeScript/wiki/Typings-for-npm-packages), it'll be great if you guys could ship type definitions alongside the package. Maybe there's way to do it during release from the
dox
JSON output files.