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.

Static methods support for @plumier/reflect

See original GitHub issue

Currently, the @plumier/reflect package doesn’t support the reflection of static methods on a class. Is there any limitation or has it been left out on purpose?

class MyController {
  @someDecorator()
  static myStaticMethod() {}
}

const meta = reflect(MyController); // meta.methods is empty

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ktutnikcommented, Oct 5, 2022

Ok, the packages haven’t been updated for a long time, I will update it first and make sure all other tests run.

0reactions
ktutnikcommented, Dec 4, 2022

Update,

I got tons of errors after upgrading dependencies. But I am able to fix some of them, I still getting some unit tests error under /social-login.

I should be able to fix it soon, you can track it here https://github.com/plumier/plumier/pull/1024

Read more comments on GitHub >

github_iconTop Results From Across the Web

Static Methods - MATLAB & Simulink - MathWorks
Static methods are useful when you do not want to create an instance of the class before executing some code. For example, suppose...
Read more >
Can we Overload or Override static methods in java
Can we overload static methods? The answer is 'Yes'. We can have two or more static methods with the same name, but differences...
Read more >
static - JavaScript - MDN Web Docs - Mozilla
Static methods are often utility functions, such as functions to create or clone objects, whereas static properties are useful for caches, fixed ...
Read more >
Mocking Static Methods With Mockito - Baeldung
This method returns a MockedStatic object for our type, which is a scoped mock object.
Read more >
Add support Interfaces to define static methods #13462 - GitHub
Open your mind. Do you think typescript should allow static methods in Interfaces? this was implemented in Java 8 in the last version,...
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