Visitar URL original
[@types/cookie-parser]- cookies of type 'any': unsafe-member-access / unsafe-assignment · DefinitelyTyped/DefinitelyTyped · Discussion #68587 · GitHub
Skip to content
Discussion options

You must be logged in to vote

Actually, I made a mistake: it looks like there was just an issue with how the cookie-parser types were doing their augmentation. #68591 is now properly setting the types to Record<string, any> for cookies and signedCookies.

If you prefer to use the narrower type (string instead of any) for your own use case, then you can also keep your own augmentation in your code.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@adamwozhere
Comment options

@MysteryBlokHed
Comment options

@adamwozhere
Comment options

@MysteryBlokHed
Comment options

Answer selected by adamwozhere
@adamwozhere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pkg: cookie-parser Discussions related to cookie-parser
3 participants