typescript - 所有子项目的通用类型
问题描述
如何为我的所有子项目添加通用类型?例如,我所有的项目都使用着色器(glsl),所以我不想每次都声明它们。当我将 d.ts 文件保存在根目录中时,它不起作用。
我的结构:
-packages
--common
--project-first
--tsconfig.json (extending tsconfig in the main folder)
-typings
--glsl.d.ts (here it doesn't work, I have to move this file to each project (/packages/project-first for example)
-tsconfig.json
解决方案
推荐阅读
- perl - Perl find - 返回内存不足
- css - 停止动画特定步骤
- c# - 比较 2 个字符串数组元素并返回
- c - var 和 &(*var) 有什么区别
- java - (-4) 即 [~(-4)] 的按位补码是什么?
- rubygems - 您没有 /usr/bin 目录的写入权限。在安装 Cocoapods 时
- reporting-services - 域管理员无法登录报表服务器(无法加载文件夹内容)
- python - 将 HTML 插入 python HTML 模板
- javascript - Pagedown Markdown 转换器无法正常工作
- javascript - Socket.io 和 React Native,不能从手机发出事件?