An error appears when importing this package in a TypeScript project. Basically, it says that the types are there, but "exports" field doesn't mention them, so they can't be imported:
Could not find a declaration file for module 'node-web-audio-api'. 'path/to/node_modules/node-web-audio-api/index.mjs' implicitly has an 'any' type.
There are types at 'path/to/node_modules/node-web-audio-api/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'node-web-audio-api' library may need to update its package.json or typings.ts(7016)
An error appears when importing this package in a TypeScript project. Basically, it says that the types are there, but
"exports"
field doesn't mention them, so they can't be imported:This PR fixes that.