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
{{ message }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
The stores function from @sapper/app has an unknown return type, although there is a known object returning some predefined values such as preloading, page, session, as seen in the Sapper Docs.
<script>
import { stores } from'@sapper/app';const { preloading, page, session } =stores(); // => `unknown`, destructured items are `any`constdelayedPreloading=derived( preloading, (currentPreloading, set) => { // as preloading is treated as `any`, TypeScript cannot infer types for fn parameters// ... } );// ...
</script>
Describe the solution you'd like
Adding types for these stores would improve DX.
Describe alternatives you've considered
Just ignore TypeScript warning about the any type in use cases.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The
stores
function from@sapper/app
has anunknown
return type, although there is a known object returning some predefined values such aspreloading
,page
,session
, as seen in the Sapper Docs.Describe the solution you'd like
Adding types for these stores would improve DX.
Describe alternatives you've considered
Just ignore TypeScript warning about the
any
type in use cases.The text was updated successfully, but these errors were encountered: