vvo / iron-session

đź›  Secure, stateless, and cookie-based session library for JavaScript

Home Page:https://get-iron-session.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make properties in T for IronSession<T> optional (union with undefined)

jotatoledo opened this issue · comments

In case that there is no seal/cookie, the parsed data is an empty object.
For this reason, it would be more accurate to make the properties of the type parameter T optional.