Nodejs-storage: TypeScript types not working due to typo in package.json

Created on 6 Sep 2018  ·  4Comments  ·  Source: googleapis/nodejs-storage

Hello,

Thanks for releasing a TypeScript version! I'm excited to have a typed interface available.

However, the types field in package.json currently references a non-existent file as of the 2.0.0 release:

  "types": "./build/src/index.t.ds",

I believe the correct file is:

  "types": "./build/src/index.d.ts",

(Note the swapped letters in the file extension).

This causes an error when trying to import the module in a TypeScript project: TS7016: Could not find a declaration file for module '@google-cloud/storage'.

Thanks!

storage triage me

Most helpful comment

@jakubdrabik This fix is on NPM now with 2.0.1.

All 4 comments

🤦‍♂️

Thanks for the quick response!

@JustinBeckwith Hi, thanks for the quick fix, when shall we expect a new patched version on NPM?

@jakubdrabik This fix is on NPM now with 2.0.1.

Was this page helpful?
0 / 5 - 0 ratings