[@types/server] config object in server method has misspelled csrf property
#59140
Unanswered
jjloneman
asked this question in
Issues with a @types package
Replies: 2 comments
-
|
Thanks for the discussion about "server", some useful links for everyone: Pinging the DT module owners: @sant123, @iddan, @DazSanchez. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Created a pull request to fix this issue: #59141 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I get a TypeScript error for the following:
Full error:
The issue occurs when passing the key
security.csrfto theserver()method, like:In
index.d.tsin@types/server,serveris defined as:and
Optionsis defined intypings/options.d.tsas:where the key in the type is defined as
csurf(like the npm library), but the actual key in the source code (plugins/security/index.js) is defined as:This issue occurred with the following dependency versions:
Beta Was this translation helpful? Give feedback.
All reactions