'Typescript file-naming conventions
I'm looking for the Typescript file-naming conventions, specifically for a file which stores only types and interfaces.
Now, I've found a couple of Typescript Coding Convention projects on GitHub, and they even refer to file-naming conventions here and here. But none of them refers to the specific file that I'm interested in, namely - a file which stores only types and interfaces.
For all it matters, within my project this file serves for both internal usage and external API.
Solution 1:[1]
we usually go for "index.d.ts" and have multiple spaced throughout the project.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |