question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no-unreachable-types: Interface implementing other interfaces are always unreachable

See original GitHub issue

Describe 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
tobiasdiezcommented, Aug 28, 2021

Thanks a lot for the quick fix! It is working for me.

1reaction
B2o5Tcommented, Aug 20, 2021

Yes, I found the issue, I’ll fix it soon, thanks 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found