-
-
Notifications
You must be signed in to change notification settings - Fork 218
Closed as not planned
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
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:<script lang="ts"> type T = $$Generic<number> export let 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
DetachHead and KotlinIsland
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working