Angular 20 Dependency Injection Cleanup
Automates the removal of deprecated InjectFlags, TestBed.get, and untyped Injector usage for Angular 20 projects.
This skill facilitates the transition to Angular 20 by modernizing dependency injection patterns across your codebase. It identifies and replaces legacy InjectFlags with modern injection options, converts deprecated TestBed.get calls to TestBed.inject for improved type safety, and ensures Injector.get usage is properly typed. This tool is essential for developers performing a version upgrade who need to eliminate technical debt and adhere to the strict ProviderToken typing requirements introduced in Angular v20.
主な機能
01Remediates untyped Injector.get instances to improve type safety
02Ensures strict ProviderToken typing across source code and tests
03Replaces legacy InjectFlags with modern injection option objects
04Converts deprecated TestBed.get calls to the safer TestBed.inject API
05Validates custom providers and string-based injection tokens during migration
062 GitHub stars
ユースケース
01Enforcing strict TypeScript typing in complex dependency injection scenarios
02Refactoring legacy unit test suites to use modern Angular testing APIs
03Post-upgrade cleanup after migrating an enterprise application to Angular v20