fastify-txstate 3.2.1 → 3.2.2

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +3 -1
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -114,6 +114,8 @@ export declare const devLogger: {
114
114
  child(bindings: any, options?: any): any;
115
115
  };
116
116
  export declare const prodLogger: FastifyLoggerOptions;
117
+ export type FastifyInstanceTyped = FastifyInstance<RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, FastifyBaseLogger, JsonSchemaToTsProvider>;
118
+ export type TxServer = Server;
117
119
  export default class Server {
118
120
  protected config: FastifyTxStateOptions & {
119
121
  http2?: true;
@@ -130,7 +132,7 @@ export default class Server {
130
132
  protected validOrigins: Record<string, boolean>;
131
133
  protected validOriginHosts: Record<string, boolean>;
132
134
  protected validOriginSuffixes: Set<string>;
133
- app: FastifyInstance<RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, FastifyBaseLogger, JsonSchemaToTsProvider>;
135
+ app: FastifyInstanceTyped;
134
136
  constructor(config?: FastifyTxStateOptions & {
135
137
  http2?: true;
136
138
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-txstate",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "A small wrapper for fastify providing a set of common conventions & utility functions we use.",
5
5
  "exports": {
6
6
  ".": {