express-type-augmentor
CommunityType-safely augment Express requests with req.user.
Authorstackconsult
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill enables a strongly-typed Express Request by adding an optional user property, enabling reliable access to authentication tokens in TypeScript-based apps.
Core Features & Use Cases
- Global Express augmentation to expose req.user as an AuthToken type.
- Simplified migration: update tsconfig to include new types and adjust typeRoots.
- Refactor middleware and consumers to rely on standard Express.Request instead of custom interfaces.
Quick Start
Create a global Express type augmentation file at src/types/express.d.ts that extends Express.Request with an optional user property and then adjust tsconfig.json and middleware/consumers accordingly.
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: express-type-augmentor Download link: https://github.com/stackconsult/RE-Engine/archive/main.zip#express-type-augmentor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.