From 3c1d5cf8a08a6afbcfc78640b8cdb26fac8002ca Mon Sep 17 00:00:00 2001 From: Zach Willard <13011363+fullstackzach@users.noreply.github.com> Date: Tue, 27 Dec 2022 10:39:41 -0600 Subject: [PATCH] Update Typescript instructions in Readme.MD 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. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05cb0088..e65eb0db 100644 --- a/README.md +++ b/README.md @@ -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";