File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -507,7 +507,7 @@ To simplify the use of namespaces in TypeScript you can use the `FastifyJwtNames
507
507
508
508
``` typescript
509
509
declare module ' fastify' {
510
- interface FastifyInstance extends
510
+ interface FastifyInstance extends
511
511
FastifyJwtNamespace <{namespace: ' security' }> {
512
512
}
513
513
}
@@ -517,7 +517,7 @@ Alternatively you can type each key explicitly:
517
517
518
518
``` typescript
519
519
declare module ' fastify' {
520
- interface FastifyInstance extends
520
+ interface FastifyInstance extends
521
521
FastifyJwtNamespace <{
522
522
jwtDecode: ' securityJwtDecode' ,
523
523
jwtSign: ' securityJwtSign' ,
Original file line number Diff line number Diff line change @@ -50,21 +50,21 @@ declare namespace fastifyJwt {
50
50
} > =
51
51
Record < C extends { jwtDecode : string }
52
52
? C [ 'jwtDecode' ]
53
- : C extends { namespace : string }
53
+ : C extends { namespace : string }
54
54
? `${C [ 'namespace' ] } JwtDecode`
55
55
: never ,
56
56
JWT [ 'decode' ] >
57
57
&
58
58
Record < C extends { jwtSign : string }
59
59
? C [ 'jwtSign' ]
60
- : C extends { namespace : string }
60
+ : C extends { namespace : string }
61
61
? `${C [ 'namespace' ] } JwtSign`
62
62
: never ,
63
63
JWT [ 'sign' ] >
64
64
&
65
65
Record < C extends { jwtVerify : string }
66
66
? C [ 'jwtVerify' ]
67
- : C extends { namespace : string }
67
+ : C extends { namespace : string }
68
68
? `${C [ 'namespace' ] } JwtVerify`
69
69
: never ,
70
70
JWT [ 'verify' ] >
You can’t perform that action at this time.
0 commit comments