fastify / fastify

Fast and low overhead web framework, for Node.js

Home Page:https://www.fastify.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong DecorationMethod type

arrontravala opened this issue · comments

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.26.2

Plugin version

No response

Node.js version

20.12.1

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

14.4.1

Description

The value type is null in the DecorationMethod, that makes typescript throws an error: "Argument of type xxx is not assignable to parameter of type null"
image

Steps to Reproduce

  • Write a plugin
  • Decorate a method, object,...

Expected Behavior

No response