Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Where to declare a types file - Kevin Powell - Community
KP-C
Kevin Powell - Community
•
2y ago
•
5 replies
taj0023
Where to declare a types file
Is there a convention to place a
types.d.ts
types.d.ts
file
?
My project structure looks like this
:
-
client
client
folder and
server
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
?
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
How to convert blobUrl to a video file or embed a video ?
KP-C
Kevin Powell - Community / back-end
2y ago
NodeJS app.js requiring a JSON file?
KP-C
Kevin Powell - Community / back-end
3y ago