4 ms·
When you use TypeScript, you don't have to organize your program any differently than you would in JavaScript. If "structure" means how the directories and fil
by smt88 10y ago
When you use TypeScript, you don't have to organize your program any differently than you would in JavaScript.
If "structure" means how the directories and files are organized, then TypeScript makes no difference. I personally use the outDir setting in my tsconfig.json file to separate my JS from my TS, but not everyone does that.
If "structure" means "paradigm" (such as OOP), TypeScript might make a difference. You might find, for example, that functional programming makes more sense than object orientation to you once you have types. It really depends on you. Again, there's no real reason you'd change your preferred paradigm.
If "structure" means the types themselves (the structure of your data), then TypeScript isn't changing anything. It's just documenting your intentions in a way that other people and the compiler can understand.