anh-chu/additional-ts-practice icon
public
Published on 7/15/2025
Additional TS practice

Rules

Remove unused variables, imports, and functions to maintain a clean codebase. When using internationalization (i18n) translation functions, explicitly cast the return value to string or ReactNode if TypeScript infers the type as {}. Always try to catch TypeScript/ESLint errors early in development. For complex type compatibility issues with external libraries, prefer type assertions over loosening type definitions to maintain type safety elsewhere in the codebase. Minimize launching the browser to test things yourself if not asked for explicitly. When workingwith external tools/libraries, always check the official documentation first to ensure the best implementation. Don't forget to search tsconfig.json for import pattern definitions.