MCPcopy Create free account
hub / github.com/fastify/fastify / checkDecorators

Function checkDecorators

lib/plugin-utils.js:80–90  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

78}
79
80function checkDecorators (fn) {
81 const meta = getMeta(fn)
82 if (!meta) return
83
84 const { decorators, name } = meta
85 if (!decorators) return
86
87 if (decorators.fastify) _checkDecorators(this, 'Fastify', decorators.fastify, name)
88 if (decorators.reply) _checkDecorators(this, 'Reply', decorators.reply, name)
89 if (decorators.request) _checkDecorators(this, 'Request', decorators.request, name)
90}
91
92const checks = {
93 Fastify: exist,

Callers

nothing calls this directly

Calls 2

getMetaFunction · 0.85
_checkDecoratorsFunction · 0.85

Tested by

no test coverage detected