Open
Description
Which component is affected?
Qwik Runtime
Describe the bug
Trying to await a function inside onResolved
in a I get
Type '(appointments: MyCustomType) => Promise' is not assignable to type '(value: MyCustomType) => JSXOutput'.
Type 'Promise' is not assignable to type 'JSXOutput'.ts(2322)
core.d.ts(2280, 5): The expected type comes from property 'onResolved' which is declared here on type 'IntrinsicAttributes & ResourceProps'
But even though typescript complains, the code works on my end. So I guess it's just an easy fix on the ts side.
Reproduction
https://stackblitz.com/edit/github-b7kqvv?file=src%2Froutes%2Findex.tsx
Steps to reproduce
Open stackblitz repro, maybe edit the index.tsx file (add a space anywhere to get the ts highlighter).
System Info
🙅♂️
Additional Information
No response
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting For Review