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.
- package/lib/index.d.ts +3 -1
- 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:
|
|
135
|
+
app: FastifyInstanceTyped;
|
|
134
136
|
constructor(config?: FastifyTxStateOptions & {
|
|
135
137
|
http2?: true;
|
|
136
138
|
});
|