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.

Allow @implements of 'abstract class'

See original GitHub issue

This allows a DI pattern

abstract class IFace { ... }
di.register(IFace, ...); /// <- IFace must be a class for it to have a value

class Foo implements IFace {}

Currently tsickle drops the ‘implements IFace’ because you cannot implements a class, but in the specific case of an empty abstract class we could allow it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
evmarcommented, Aug 14, 2018

Oops, and now I overlooked your Angular 2 question. You are right that AngularJS did some crazy regex stuff. Angular2 is effectively totally different, a complete rewrite.

1reaction
evmarcommented, Aug 14, 2018

Nah I’m talking about this Angular: https://angular.io/api/core/InjectionToken , which is passing around keys.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implement Interface using Abstract Class in Java
Interface contains only abstract methods that can't be instantiated and it is declared by keyword interface. A class that is declared with ...
Read more >
Abstract Methods and Classes (The Java™ Tutorials ...
Abstract classes are similar to interfaces. You cannot instantiate them, and they may contain a mix of methods declared with or without an...
Read more >
Extending vs. implementing a pure abstract class in TypeScript
The implements keyword treats the A class as an interface, that means C has to implement all the methods defined in A, no...
Read more >
Abstract Class vs Interface in Java – Difference Between Them
An abstract class permits you to make functionality that subclasses can implement or override whereas an interface only permits you to state ...
Read more >
Implement methods of an interface or abstract class - JetBrains
If a class is declared as implementing a certain interface or extending a class with abstract methods, it has to implement the methods...
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