Skip to content

Glossary: Building APIs with Node.js

Route generic

Also written: route generics

The angle-bracket type, such as `{ Params; Querystring; Body }`, that tells Fastify and TypeScript a route's request shape. It vanishes at run time.

Where the book teaches it

Related terms

Validationas (type assertion)