Skip to content

Glossary: Web App Security and Authentication

declare module

Also written: declare module "fastify"

A TypeScript block that adds to a library's existing types. kc-shop uses it to add a user property to Fastify's request type.

Where the book teaches it

Related terms

decorateRequest