T3 just released an insanely fast AI Chat (like ChatGPT or Gemini) and I made a Desktop app for this to make it easier to access:
@t3.gg #AI
Please give it a try over here:
github.com/Nytely-Offic...
Posts by JackNytely
Just made my first post, let me know what you all think
@t3.gg #Software #Code #Aesthetics #Clean #Web #Developer #Interface #Enum #Enumeration #Type #TypeScript #JavaScript #NodeJS
And now if we ever have a small change or issue with one of the interfaces or enums, we no longer need to look through 1 file of 100 lines of code, we can now find it in the file structure, change it, and it will be fixed throughout our entire application.
example of using the Types in our app:
Now we finally need to edit our /types/types.ts file to centralize all our split interfaces and enums to make it easier to access in our app:
But now we need a centralized way to get these types, as such we have this folder structure:
Example 3/3:
Example 2/3:
However, our file is now really long, and this is commonly seen throughout big and small projects, I personally think that you should separate interfaces, types, enums, records, etc... into their own folders "/types/{interfaces, types, enums, records}" and in their own files. Example 1/3:
The main problem here is that the Interface has nested interfaces within it, and this is generally not best practice, it is best to first separate all objects into their own interface or type to avoid nesting as seen in the following image:
There are times when I work with code and see this, however, it can be improved quite a bit. Read the replies to see solution