diff --git a/README.md b/README.md index c021906..84f8f83 100644 --- a/README.md +++ b/README.md @@ -507,7 +507,7 @@ To simplify the use of namespaces in TypeScript you can use the `FastifyJwtNames ```typescript declare module 'fastify' { - interface FastifyInstance extends + interface FastifyInstance extends FastifyJwtNamespace<{namespace: 'security'}> { } } @@ -517,7 +517,7 @@ Alternatively you can type each key explicitly: ```typescript declare module 'fastify' { - interface FastifyInstance extends + interface FastifyInstance extends FastifyJwtNamespace<{ jwtDecode: 'securityJwtDecode', jwtSign: 'securityJwtSign', diff --git a/types/jwt.d.ts b/types/jwt.d.ts index 9e5670d..3590e9c 100644 --- a/types/jwt.d.ts +++ b/types/jwt.d.ts @@ -50,21 +50,21 @@ declare namespace fastifyJwt { }> = Record & Record & Record