-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
DXDeveloper Experience related issueDeveloper Experience related issuebugSomething isn't workingSomething isn't workingtypes
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
DXDeveloper Experience related issueDeveloper Experience related issuebugSomething isn't workingSomething isn't workingtypes