jcs224 / hono_sessions

Cookie-based sessions for Hono applications
https://jsr.io/@jcs224/hono-sessions
MIT License
53 stars 6 forks source link

getter and setter #17

Open tcurdt opened 1 month ago

tcurdt commented 1 month ago

It seems like session.counter could allow for better typing compared to session.get('counter'). Any thoughts on maybe allowing for that?

I would like to have type safe session. Also means I somehow need to extend the Session interface.

jcs224 commented 1 month ago

This is a great idea!

I don't know how to do this currently, need to level up my Typescript skills :sweat_smile: but always accepting of PRs if someone is willing to tackle this before I get around to trying it.