/** * @license * Copyright Andrey Chalkin (https://github.com/L2jLiga). All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/L2jLiga/fastify-decorators/blob/master/LICENSE */ import { RouteShorthandOptions } from 'fastify'; import { HttpMethods } from './http-methods.js'; export interface IHandler { url: string; method: HttpMethods; options: RouteShorthandOptions; handlerMethod: string | symbol; } export interface IErrorHandler { accepts(error?: T): boolean; handlerName: string | symbol; } export interface IHook { name: string; handlerName: string | symbol; }