no-unreachable-types: Interface implementing other interfaces are always unreachable
See original GitHub issueDescribe the bug
If you have one interface SUB that implements another interface PARENT, then the interface SUB and all types implementing this interface are marked as unreachable - although PARENT is used and is correctly not marked as unreachable.
To Reproduce Steps to reproduce the behavior:
interface User {
id: ID!
}
interface Manager implements User {
id: ID!
}
type TopManager implements Manager {
id: ID!
name: String
}
type Query {
me: User
}
Manager and TopManager are marked as unreachable, although they are reachable by Query > me
.
Expected behavior
No error.
Environment:
- OS:
@graphql-eslint/...
: 1.1.4- NodeJS:
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Why an interface cannot implement another interface in Java?
Like classes, the interface contains methods and variables. Unlike classes, interfaces are always completely abstract.
Read more >Interface extends another interface but implements its methods
In order to implement a new class you have to implement an already existing interface. Java is the same story. Take any OO...
Read more >Suggestion: Allow interfaces to "implement" (vs extend) other ...
Allow declaring that an interface "implements" another interface or interfaces, which means the compiler checks conformance, but unlike the ...
Read more >Do I need to use an interface when only one class will ever ...
Allowing multiple classes to implement Interfaces and having your code depend on the interfaces is ESSENTIAL to isolation for unit testing. If you...
Read more >Java Interfaces - Jenkov.com
Java interfaces specify what methods a class implementing that interface ... This Java interface tutorial explains how Java interfaces work, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot for the quick fix! It is working for me.
Yes, I found the issue, I’ll fix it soon, thanks 👍