fastify 3.19.0 → 3.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import { FastifyLoggerInstance } from './logger'
2
2
  import { RawServerBase, RawServerDefault, RawRequestDefaultExpression, RequestBodyDefault, RequestQuerystringDefault, RequestParamsDefault, RequestHeadersDefault } from './utils'
3
3
  import { RouteGenericInterface } from './route'
4
+ import { FastifyInstance } from './instance'
4
5
 
5
6
  export interface RequestGenericInterface {
6
7
  Body?: RequestBodyDefault;
@@ -23,6 +24,7 @@ export interface FastifyRequest<
23
24
  raw: RawRequest;
24
25
  query: RouteGeneric['Querystring'];
25
26
  log: FastifyLoggerInstance;
27
+ server: FastifyInstance;
26
28
  body: RouteGeneric['Body'];
27
29
 
28
30
  /** in order for this to be used the user should ensure they have set the attachValidation option. */