Open heazog opened 3 years ago
Hi Heazog, i have just checked. It works in principle. Maybe you can elaborate on the error... Your error line says something like
index.ts:2:21 - error TS7016: Could not find a declaration file for module 'eudgc'. '.../tmp/typescript/node_modules/eudgc/dist/eudgc.js' implicitly has an 'any' type.
Try `npm install @types/eudgc` if it exists or add a new declaration (.d.ts) file containing `declare module 'eudgc';`
which makes me wonder, whether you are working with plain Javascript (and ES6 Modules) or with Typescript. If working with Javascript on the Serverside, it is most likely without Babel.js... Is that your setup?
/Stepan
This package does not work for me on node (typescipt).
Reproduce:
npm install eudgc --save
import { EuDgc, EuDgcCert, EuDgcVaccination} from 'eudgc'
to index.tstsc
@types/eudgc does not exist