You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Astro's Typescript appears to be ignoring variables in the return value e.g. return redirect() in .astro files.
When using astro/tsconfigs/strictest the variables used in the return value the variables are highlighted with ts(6133): '<variable>' is declared but its value is never read.
I came across this issue whilst using a helper for my auth in .astro files, like so:
Describe the Bug
Astro's Typescript appears to be ignoring variables in the return value e.g.
return redirect()
in.astro
files.When using
astro/tsconfigs/strictest
the variables used in the return value the variables are highlighted withts(6133)
:'<variable>' is declared but its value is never read.
I came across this issue whilst using a helper for my auth in
.astro
files, like so:Where
redirect
is a function that returnsAstro.redirect()
Steps to Reproduce
See my reproduction repo or follow below instructions.
npm create astro@latest
npm i
pages/index.astro
and add (I'm usingMath.random
to get around other TS errors)redirect
with'redirect' is declared but its value is never read.
The text was updated successfully, but these errors were encountered: