avoiding-angle-bracket-assertions
CommunityPrefer 'as' syntax over angle-bracket assertions.
Authordjankies
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Angle-bracket type assertions (<Type>) conflict with TSX and are deprecated in favor of the "as" syntax. This Skill guides migration to safer, JSX-friendly syntax.
Core Features & Use Cases
- Replace <Type>value with value as Type.
- Use type guards and validation to avoid unsafe assertions.
- Consider TSX compatibility and readability improvements.
Quick Start
Replace angle-bracket assertions with 'as' syntax in TS/TSX code and validate with tests.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: avoiding-angle-bracket-assertions Download link: https://github.com/djankies/claude-configs/archive/main.zip#avoiding-angle-bracket-assertions Please download this .zip file, extract it, and install it in the .claude/skills/ directory.