npm-opa-wasm icon indicating copy to clipboard operation
npm-opa-wasm copied to clipboard

It appears that `opa.d.ts` is missing

Open robdefeo opened this issue 2 years ago • 1 comments

Type are referenced in the package.json however they are not include in the build. This was working previous at version 1.4.0

So this is the error when using with Typescript

Could not find a declaration file for module '@open-policy-agent/opa-wasm'. '..../node_modules/@open-policy-agent/opa-wasm/src/index.mjs' implicitly has an 'any' type.
  There are types at '.../node_modules/@open-policy-agent/opa-wasm/dist/types/opa.d.ts', but this result could not be resolved when respecting package.json "exports". The '@open-policy-agent/opa-wasm' library may need to update its package.json or typings.ts(7016)

Requested resolution is to include the types again

robdefeo avatar Nov 23 '23 14:11 robdefeo

Thanks for the report. Would you happen to have an idea how to fix it? 😅

srenatus avatar Nov 23 '23 15:11 srenatus