![]() Then this will compile correctly: import from 'react-mobile-datepicker' Į. Then when you import foo it'll just be typed as any.Īlternatively, if you want to roll your own typings you can do that too: // foo.d.tsĮxport function getRandomNumber(): number ts files: as specified under "files", "include", and "exclude" in the tsconfig.json. d.ts files in the same places that it will look for normal. If you're importing a third-party module 'foo' that doesn't provide any typings, either in the library itself, or in the package (generated from the DefinitelyTyped repository), then you can make this error go away by declaring the module in a file with a. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |