aws4fetch icon indicating copy to clipboard operation
aws4fetch copied to clipboard

Add types export to package.json

Open pdubs10 opened this issue 1 year ago • 1 comments

I needed to add this export to package.json in order get the library working properly with TypeScript 5.1.3 and a simple Vue application based off of npm init [email protected].

Without this change VSCode gives the following error when attempting to import the module.

Could not find a declaration file for module 'aws4fetch'. '/path/to/node_modules/aws4fetch/dist/aws4fetch.esm.mjs' implicitly has an 'any' type.
  There are types at '/path/to/node_modules/aws4fetch/dist/main.d.ts', but this result could not be resolved when respecting package.json "exports". The 'aws4fetch' library may need to update its package.json or typings.ts(7016)

pdubs10 avatar Jun 26 '23 13:06 pdubs10

@mhart any plans on merging this? Much appreciate it.

DSergiu avatar Sep 28 '23 09:09 DSergiu