olaferlandsen / Typescript-Json-Object-Mapper

Json Object mapper writing in TypeScript
MIT License
5 stars 1 forks source link

Missing types definitions #9

Open rafaferry opened 4 years ago

rafaferry commented 4 years ago

Hey man,

Thank for this lib, the concept is awesome and it is exactly what I needed.

I'm having some trouble trying to use this on my project. I've installed it with npm install typescript-json-object-mapper --save

But when I try to import it, vscode shows me this error:

Could not find a declaration file for module 'typescript-json-object-mapper'. '/home/rafa/desenvolvimento/projetos/plataforma-indicadores/server/node_modules/typescript-json-object-mapper/build/index.js' implicitly has an 'any' type. Try npm install @types/typescript-json-object-mapper if it exists or add a new declaration (.d.ts) file containing declare module 'typescript-json-object-mapper';ts(7016)

I am doing something wrong or the lib is missing the file type declarations? I could declare this module in a d.ts file with 'declare module 'typescript-json-object-mapper';' But since its a native typescript code, I think this should have type definitions for the lib types.

Thank you.

olaferlandsen commented 4 years ago

I will working in this issue, thanks!