Skip to content

fix: typing get svelte/store#5483

Merged
Conduitry merged 1 commit intosveltejs:masterfrom
bfanger:fix/typescript-get-store-value
Oct 1, 2020
Merged

fix: typing get svelte/store#5483
Conduitry merged 1 commit intosveltejs:masterfrom
bfanger:fix/typescript-get-store-value

Conversation

@bfanger
Copy link
Copy Markdown
Contributor

@bfanger bfanger commented Oct 1, 2020

The new typing for get_store_value introduced in 3.29.0 doesn't work and generates multiple Object is of type 'unknown'. errors in our codebase.

See the .D.TS tab in playground to see that typescript thinks the return value is unknown.

Demo of the fix: playground

@Conduitry Conduitry merged commit 3fa15b9 into sveltejs:master Oct 1, 2020
@Conduitry
Copy link
Copy Markdown
Member

This has been released in 3.29.3, thanks!

taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants