nitrojs / nitro

Next Generation Server Toolkit. Create web servers with everything you need and deploy them wherever you prefer.
https://nitro.build
MIT License
6.28k stars 516 forks source link

types(cache): resolved value is not nullable #2848

Closed pi0 closed 2 weeks ago

pi0 commented 2 weeks ago

ref: https://github.com/nitrojs/nitro/discussions/2829#discussioncomment-11145036 resolves #2847

Resolved cache functions always have .value. This PR fixes types (which got stricter in 2.10+)

cloudflare-workers-and-pages[bot] commented 2 weeks ago

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: f1116c5
Status: ✅  Deploy successful!
Preview URL: https://0ae09fc2.nitrojs.pages.dev
Branch Preview URL: https://types-cache-res.nitrojs.pages.dev

View logs