Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TypeScript): correct typing on Session #313

Merged
merged 2 commits into from
Feb 22, 2021
Merged

fix(TypeScript): correct typing on Session #313

merged 2 commits into from
Feb 22, 2021

Conversation

Magnesium38
Copy link
Contributor

I was trying out the library in a TypeScript Next.js app and I thought it was weird that Session.set didn't return the value that was passed in. I realised that it actually does after digging in a little bit, so this PR is primarily to fix that.

Additionally, I thought I'd check the other types on the Session and also found that Session.save returns the cookie header value as a string.

@vercel
Copy link

vercel bot commented Feb 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vvoyer/next-iron-session-example/9yqBTCozKpWpZMNPfp91VvPXEaGv
✅ Preview: https://next-iron-sess-git-fork-magnesium38-fix-session-typing-ebed3f.vercel.app

@vvo
Copy link
Owner

vvo commented Feb 22, 2021

Perfect :)

@vvo vvo merged commit d8d96bc into vvo:master Feb 22, 2021
@vvo
Copy link
Owner

vvo commented Feb 22, 2021

🎉 This PR is included in version 4.1.12 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vvo vvo added the released label Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants