Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing types definitions #9

Open
rafaferry opened this issue May 27, 2020 · 1 comment
Open

Missing types definitions #9

rafaferry opened this issue May 27, 2020 · 1 comment

Comments

@rafaferry
Copy link

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
Copy link
Owner

I will working in this issue, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants