Skip to content

Commit

Permalink
style: remove trailing whitespace (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 3, 2024
1 parent bf1e9bd commit 1b3470e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'}> {
}
}
Expand All @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions types/jwt.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ declare namespace fastifyJwt {
}> =
Record<C extends { jwtDecode: string}
? C['jwtDecode']
: C extends {namespace: string}
: C extends {namespace: string}
? `${C['namespace']}JwtDecode`
: never,
JWT['decode']>
&
Record<C extends { jwtSign: string}
? C['jwtSign']
: C extends {namespace: string}
: C extends {namespace: string}
? `${C['namespace']}JwtSign`
: never,
JWT['sign']>
&
Record<C extends { jwtVerify: string}
? C['jwtVerify']
: C extends {namespace: string}
: C extends {namespace: string}
? `${C['namespace']}JwtVerify`
: never,
JWT['verify']>
Expand Down

0 comments on commit 1b3470e

Please sign in to comment.