Kijan pou m estriktire yon pwojè TypeScript ki gwo?

asked 2 months ago207 viewsht

5

Pwojè m nan ap grandi. Ki jan pou m òganize dosye yo, tsconfig paths, ak modil pataje san sa vin yon gwo dezòd?

AI diagnosis

AI-generated. Not an answer — the community below confirms or corrects it. Always verify before relying on it.

asked 2 months ago
  • Thanks, this helped. Did you also try clearing the cache?

    — davidcharles 2 months ago

1 Answer

1
✓
✓ Accepted answer

Use tsconfig paths with a @/* alias, group by feature not by type, and put shared code in a lib/ or packages/ folder. Enable strict and noUncheckedIndexedAccess early — retrofitting is painful.

Sign in to tell others whether this worked.

answered 2 months ago
  • @Marie Louis, Mèsi anpil sa mache pou mwen kounya.

    — jeanpierre 2 months ago

Sign in and verify your email to post an answer.