Home / Function/ checkDecorators() — fastify Function Reference

checkDecorators() — fastify Function Reference

Architecture documentation for the checkDecorators() function in plugin-utils.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  dc418532_7b8b_47eb_eef3_55012a902bb9["checkDecorators()"]
  7351467e_fa74_55c1_e257_0dfcb434a1e3["plugin-utils.js"]
  dc418532_7b8b_47eb_eef3_55012a902bb9 -->|defined in| 7351467e_fa74_55c1_e257_0dfcb434a1e3
  5b05b925_857e_fbd2_7a8e_eeb788504648["getMeta()"]
  dc418532_7b8b_47eb_eef3_55012a902bb9 -->|calls| 5b05b925_857e_fbd2_7a8e_eeb788504648
  4715dd4f_4ad3_663f_d551_3b6740e93a1f["_checkDecorators()"]
  dc418532_7b8b_47eb_eef3_55012a902bb9 -->|calls| 4715dd4f_4ad3_663f_d551_3b6740e93a1f
  style dc418532_7b8b_47eb_eef3_55012a902bb9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

lib/plugin-utils.js lines 80–90

function checkDecorators (fn) {
  const meta = getMeta(fn)
  if (!meta) return

  const { decorators, name } = meta
  if (!decorators) return

  if (decorators.fastify) _checkDecorators(this, 'Fastify', decorators.fastify, name)
  if (decorators.reply) _checkDecorators(this, 'Reply', decorators.reply, name)
  if (decorators.request) _checkDecorators(this, 'Request', decorators.request, name)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does checkDecorators() do?
checkDecorators() is a function in the fastify codebase, defined in lib/plugin-utils.js.
Where is checkDecorators() defined?
checkDecorators() is defined in lib/plugin-utils.js at line 80.
What does checkDecorators() call?
checkDecorators() calls 2 function(s): _checkDecorators, getMeta.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free