|
|
|
|
|
by jestar_jokin
1964 days ago
|
|
I've got a team that insists all types go into `.d.ts` files. For every type internal to the app (an API backend). The types are never exported, not even to the frontend. Apparently because the tech lead thinks importing types is noisey. My pleas, of "just fold the imports in your editor" and "it makes the types globals, so it's not modular" and "interface /declaration merging becomes an issue" all fell on deaf ears. Some people like their bad habits because it makes sense to them, I guess. |
|