Skip to content

Commit

Permalink
Update Typescript instructions in Readme.MD
Browse files Browse the repository at this point in the history
Updates the description under `Typescript` to be a bit more clear. I was thrown off by the existing documentation. `ExpressJwtRequest` is deprecated and no longer used, and it appears Request should be instead.
  • Loading branch information
fullstackzach authored and jfromaniello committed Dec 27, 2022
1 parent 7e19e53 commit 3c1d5cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ app.use(

## Typescript

An `ExpressJwtRequest` type is provided which extends `express.Request` with the `auth` property.
A `Request` type is provided from `express-jwt`, which extends `express.Request` with the `auth` property. It could be aliased, like how `JWTRequest` is below.

```typescript
import { expressjwt, Request as JWTRequest } from "express-jwt";
Expand Down

0 comments on commit 3c1d5cf

Please sign in to comment.