TypeScript tutorialLesson 40Free preview
TS Best Practices
This lesson is part of TypeScript · All levels
Summary
TypeScript best practices include avoiding any overuse, turning on strict mode, and typing at the intermodal boundary. Use the built-in type and official declaration for third-party libraries. The consistency of the naming and documentation makes the type easy to understand for the entire team.
Key points
- Especially unknown or specific type than any
- Activate strict mode from the start
- Write the type on the API and module boundaries
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.