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
<scriptlang="ts">
exportlet transition:| { duration?:number; }|undefined=undefined;if (transition) {// transition.duration should not be inferred as any but numbertransition.duration=transition.duration??1500; }
</script>
What did you expect to happen?
transition.duration should be inferred as number.
If you look at transition.ts in the reproduction, you'll see it works correctly for .ts files, so it seems to be an issue with .svelte files.
What actually happened?
transition.duration is inferred as any.
Link to GitHub Repo with Minimal Reproducible Example
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.57.0
What version of
eslint-plugin-svelte
are you using?2.35.1
What did you do?
Configuration
What did you expect to happen?
transition.duration
should be inferred asnumber
.If you look at
transition.ts
in the reproduction, you'll see it works correctly for.ts
files, so it seems to be an issue with.svelte
files.What actually happened?
transition.duration
is inferred asany
.Link to GitHub Repo with Minimal Reproducible Example
https://github.com/Stadly/reproduction/tree/eslint-plugin-svelte/type-inferred-as-any
Additional comments
No response
The text was updated successfully, but these errors were encountered: