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
getMessage(...).wait will return the same i.e. [data, sender] tuple, as does firstValueFrom(getMessage(...).stream)
but the types are annotated incorrectly
Google search terms
I only went through files here.
Describe the bug
getMessage(...).wait will return the same i.e. [data, sender] tuple, as does firstValueFrom(getMessage(...).stream)
but the types are annotated incorrectly
How do we reproduce?
const [_, stream, wait] = getMessage("a")
const waited = wait()
const streamed = firstValueFrom(stream)
Expected behavior
the same type
Actual behavior
the type infer to Promise and Promise<[string, chrome.runtime.MessageSender]> even though the output is the same
Screenshots
Please complete the following information:
Additional context
The text was updated successfully, but these errors were encountered: