taj0023
taj0023
KPCKevin Powell - Community
Created by taj0023 on 5/9/2024 in #back-end
Where to declare a types file
Is there a convention to place a types.d.ts file? My project structure looks like this: - client folder and server folder are kept inside the root folder (.git). - These folders have their own package.json and tsconfig.json files. Where should I keep the d.ts files with the type declarations so i can call them directly from client and server components? Can i use the types directly without importing them?
6 replies