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
the typescript-eslint plugin seems to not be aware of $$Generic, and treats them as any.
Reproduction
enable @typescript-eslint/no-unsafe-member-access and @typescript-eslint/no-unsafe-call in your eslint config
create a .svelte file with the following contents:
<scriptlang="ts">
typeT=$$Generic<number>exportlet foo:T// Unsafe member access .toString on an `any` value. (@typescript-eslint/no-unsafe-member-access)// Unsafe call of an `any` typed value. (@typescript-eslint/no-unsafe-call)foo.toString()
</script>
Expected behaviour
no errors as T extends number so it cannot be any
System Info
OS: windows 10
IDE: vscode
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
probably related to #1778, i assume typescript is just treating it as any in both cases
The text was updated successfully, but these errors were encountered:
Describe the bug
the typescript-eslint plugin seems to not be aware of
$$Generic
, and treats them asany
.Reproduction
@typescript-eslint/no-unsafe-member-access
and@typescript-eslint/no-unsafe-call
in your eslint config.svelte
file with the following contents:Expected behaviour
no errors as
T
extendsnumber
so it cannot beany
System Info
Which package is the issue about?
svelte-language-server
Additional Information, eg. Screenshots
probably related to #1778, i assume typescript is just treating it as
any
in both casesThe text was updated successfully, but these errors were encountered: