fastify icon indicating copy to clipboard operation
fastify copied to clipboard

Add missing error types

Open davidwood opened this issue 8 months ago • 0 comments

Prerequisites

  • [x] I have written a descriptive issue title
  • [x] I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

The exported error types are missing several errors causing TypeScript compiler errors.

The following error types are not included in the error types (types/errors.d.ts)

  • FST_ERR_LISTEN_OPTIONS_INVALID
  • FST_ERR_ERROR_HANDLER_NOT_FN
  • FST_ERR_ERROR_HANDLER_ALREADY_SET
  • FST_ERR_DEC_UNDECLARED
  • FST_ERR_LOG_INVALID_LOGGER_INSTANCE
  • FST_ERR_LOG_INVALID_LOGGER_CONFIG
  • FST_ERR_LOG_LOGGER_AND_LOGGER_INSTANCE_PROVIDED
  • FST_ERR_REP_RESPONSE_BODY_CONSUMED
  • FST_ERR_REP_READABLE_STREAM_LOCKED
  • FST_ERR_PLUGIN_INVALID_ASYNC_HANDLER

The error types also includes the error FST_ERR_DEFAULT_ROUTE_INVALID_TYPE which does not have a corresponding error

Motivation

No response

Example

No response

davidwood avatar Jun 13 '25 14:06 davidwood