We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doesnt work from typescript 3.3 (oldest in playground) all the way to 4.7-nigtly
Playground link with relevant code
const getBatch = async (scrollId: string | undefined): Promise<{ scroll: string; }> => { return { scroll : 'foofoo' } } let scrollId: string | undefined = undefined for (let counter = 0; counter < 10; counter++) { const result = await getBatch(scrollId) scrollId = result.scroll }
i get error:
'result' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.(7022)
I expect no errors: result variable should be resolved as { scroll: string; }, as function getBatch has very concrete return type
result
{ scroll: string; }
getBatch
The text was updated successfully, but these errors were encountered:
Duplicate of #43047 (comment).
Sorry, something went wrong.
right, comment referenced by you talks about the same issue
No branches or pull requests
π Version & Regression Information
doesnt work from typescript 3.3 (oldest in playground) all the way to 4.7-nigtly
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
i get error:
π Expected behavior
I expect no errors:
result
variable should be resolved as{ scroll: string; }
, as functiongetBatch
has very concrete return typeThe text was updated successfully, but these errors were encountered: