At the moment the project only outputs JavaScript code and the "types" property isn't specified in the package.json as well. Trying to import the package will result in:
Could not find a declaration file for module 'teller-connect-react'. '/redacted/node_modules/teller-connect-react/dist/teller-connect-react.cjs.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/teller-connect-react` if it exists or add a new declaration (.d.ts) file containing `declare module 'teller-connect-react';`
This PR adds generation of type declarations at compile time by using the postbuild lifecycle script, leaving the build process unchanged. I also updated package.json to point to the newly generated type declarations
At the moment the project only outputs JavaScript code and the
"types"
property isn't specified in thepackage.json
as well. Trying to import the package will result in:This PR adds generation of type declarations at compile time by using the
postbuild
lifecycle script, leaving the build process unchanged. I also updatedpackage.json
to point to the newly generated type declarations