Kingsley's Knowledge Base

Home

❯

Backend

❯

frameworks/ — Ways of Building a Backend

❯

JavaScript / TypeScript Backends

❯

02 — Express

❯

Extending express types

Extending express types

1 min read

express.d.ts

declare global {
  namespace Express {
    interface Request {
      user?: {
        id: string;
        email: string;
        role?: "sponsor" | "attendee" | "organizer";
        serverRole?: "user" | "admin";
        // sub: string;
      };
    }
  }
}
 
export {};
 
Next section →03 — Nest
↑ Back to 02 — Express
Jump to a subject

Software engineering

🏛️ Architecture: System Design and Distributed Systems⚙️ Backend🛠️ Build Your Own💡 Concepts🗄️ Databases🖥️ Desktop🧩 Data Structures & Algorithms🎨 Frontend🎮 Game Development🌿 Git & Version Control🗣️ Languages📱 Mobile🌱 Programming Fundamentals🧭 Introduction to Software Engineering🧰 Tools

Infrastructure & security

🔐 Cybersecurity🚀 DevOps🌐 Networking: From the Wire to the Web🐧 Operating Systems⛓️ Web3 & Blockchain

AI & data

⚡ AI Automation🧠 AI & ML📊 Data Analysis🏗️ Data Engineering📈 Operations Research🤖 Using AI

Computer science

🔤 Compilers🧮 Computer Architecture🖌️ Computer Graphics🎛️ GPU and Parallel Computing🔌 How Computers Work📡 Information Theory∑ Mathematicsλ Programming Language Theory♾️ Theory of Computation

Hardware & engineering

🔭 Astronomy and Space🌊 Continuum Mechanics🎚️ Control Theory〰️ Digital Signal Processing🔧 Hardware & Embedded🦾 Robotics🧱 Systems Engineering

More

🎓 Learning📓 Projects📝 Research & Paper Writing

Graph View

Backlinks

  • 02 — Express

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Vault source
  • The Primetechie Path