![]() ![]() ![]() How to Make TypeScript Recognize Your Definition Files?Ĭonfigure the path to your *.d.ts file(s) in your TypeScript configuration file ( tsconfig.json). This would tell TypeScript that the declared font types are valid import modules. fonts.d.ts) and add your file definitions in there. How to Declare Files as Modules in TypeScript?Ĭreate a. Then you probably need to declare the font file type(s) as modules so TypeScript can recognize them for import. If you're trying to import fonts into your typescript project and getting the following error:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |