React-i18next: visual-studio-code does not see .d.ts

Created on 27 Aug 2019  路  6Comments  路  Source: i18next/react-i18next

visual-studio-code does not see .d.ts. Show minimal working example.

All 6 comments

don't get me wrong...but this for sure is not an issue

@jamuhl In the file src/index.d.ts does not mention key words declare and module. Like tsc by following link from package.json will understand what to do with file? Have you tested this Declaration yourself (included it in a real project)? Show an example of its including.

No, personally I do not use typescript but those typings are maintained by @rosskevin and the community. There is a test coverage for them too.

If something is wrong...please provide a PR and include tests to assert no future regression.

@jamuhl I like your manners! You do not know case, but immediately close issue. Truly inspiring on PR!

I'm sorry, my bad...

@isoftninja this library's types are indeed working with vscode. The determining factor for that is a correct package.json referencing the types. Since this is tested/asserted here as part of ci, there is no need to provide a working example to be _sure_ this is correct.

There is certainly an opportunity for you to locally configure your own tsconfig so that it does not work, but your local environment is not within the scope of this project.

Was this page helpful?
0 / 5 - 0 ratings