Home / Function/ checkReferenceType() — fastify Function Reference

checkReferenceType() — fastify Function Reference

Architecture documentation for the checkReferenceType() function in decorate.js from the fastify codebase.

Entity Profile

Dependency Diagram

graph TD
  f8657cc1_c174_6b1d_d031_b016a5e0dc67["checkReferenceType()"]
  9a1e9dba_d5e1_f903_8986_a5828fd29da9["decorate.js"]
  f8657cc1_c174_6b1d_d031_b016a5e0dc67 -->|defined in| 9a1e9dba_d5e1_f903_8986_a5828fd29da9
  8d562d1f_69c3_651a_78a7_bffeeea1c52e["decorateReply()"]
  8d562d1f_69c3_651a_78a7_bffeeea1c52e -->|calls| f8657cc1_c174_6b1d_d031_b016a5e0dc67
  63cba639_0b26_476b_2c77_ad6d431e75ac["decorateRequest()"]
  63cba639_0b26_476b_2c77_ad6d431e75ac -->|calls| f8657cc1_c174_6b1d_d031_b016a5e0dc67
  style f8657cc1_c174_6b1d_d031_b016a5e0dc67 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

lib/decorate.js lines 69–73

function checkReferenceType (name, fn) {
  if (typeof fn === 'object' && fn && !(typeof fn.getter === 'function' || typeof fn.setter === 'function')) {
    throw new FST_ERR_DEC_REFERENCE_TYPE(name, typeof fn)
  }
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does checkReferenceType() do?
checkReferenceType() is a function in the fastify codebase, defined in lib/decorate.js.
Where is checkReferenceType() defined?
checkReferenceType() is defined in lib/decorate.js at line 69.
What calls checkReferenceType()?
checkReferenceType() is called by 2 function(s): decorateReply, decorateRequest.

Analyze Your Own Codebase

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

Try Supermodel Free