mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
fxi: fastify version support 2.0 release candidate
This commit is contained in:
parent
efbcbdebaf
commit
0dc2aeee2f
@ -1,17 +1,16 @@
|
||||
import { IncomingMessage, Server, ServerResponse } from "http";
|
||||
import fastifyJwt = require("fastify-jwt");
|
||||
import fastify = require("fastify");
|
||||
import fastifyJwt = require("fastify-jwt");
|
||||
|
||||
const app = fastify();
|
||||
|
||||
app.register<fastifyJwt.FastifyJwtOptions>(fastifyJwt, {
|
||||
secret: "super-secret"
|
||||
secret: "super-secret",
|
||||
});
|
||||
|
||||
app.register<fastifyJwt.FastifyJwtOptions>(fastifyJwt, {
|
||||
secret: (request, reply, callback) => {
|
||||
return "";
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
app.get("/path", (request, reply) => {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"fastify": "^1.11.2"
|
||||
"fastify": ">=1.13.1 || 2.0.0-rc.1"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user