首页 > 解决方案 > 所有子项目的通用类型

问题描述

如何为我的所有子项目添加通用类型?例如,我所有的项目都使用着色器(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

标签: typescript

解决方案


推荐阅读