Skip to content

Conversation

@ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Oct 22, 2022

This PR modifies the virtual code to correctly provide TypeScript type information for svelte's special scope.

https://github.com/ota-meshi/svelte-eslint-parser/blob/ts/docs/internal-mechanism.md#scope-types

See #226 for details on the issue.
The following files are testing to check that they have been resolved.
tests/fixtures/integrations/type-info-tests/issue226-*.*

close #226

Also refactored the code fixed in #204 and #207.
Also, the rule added in sveltejs/eslint-plugin-svelte#262 is no longer needed, as it now provides correct type information.

@changeset-bot
Copy link

changeset-bot bot commented Oct 22, 2022

🦋 Changeset detected

Latest commit: 95c06e6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
svelte-eslint-parser Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ota-meshi ota-meshi marked this pull request as draft October 22, 2022 14:22
@ota-meshi ota-meshi added the bug Something isn't working label Oct 24, 2022
@ota-meshi ota-meshi marked this pull request as ready for review October 24, 2022 06:23
@ota-meshi ota-meshi merged commit c67a6c1 into main Oct 25, 2022
@ota-meshi ota-meshi deleted the ts branch October 25, 2022 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Narrowing type not work in reactive statements

2 participants