You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #56 made me think of other problems regarding the current typing of Object.entries. It might be a good chance to address them altogether.
As you know, Object.entries only copies own properties, so besides function signatures, class methods from the sources shouldn't be included in the resulting type too:
But it's hard to determine whether a function in a class is a method or a function property. Since methods are bivariant while function properties are contravariant in TypeScript, it should be possible to distinguish between them by some tricks that determine the variance of a function, but I didn't manage to come up with a solution, so I've posted this issue instead of a PR.
As its usage seems rare, I'm not sure if it's worth spending the time to find a solution.