-
Notifications
You must be signed in to change notification settings - Fork 8
Fix: Export the Console Interface as ConsoleLike
#63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
76ddaf3
to
efcc2f8
Compare
Sorry accidentally approved 😅 Didn't mean to, this needs at least one change to make it usable |
d2856ed
to
1752816
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks 🙏
@swsnr should we / I make a new release, as you like to use this type? |
I already use the workaround we talked about in the other discussion, so this isn't blocking me, but having a proper type would certainly be nicer, so if it's not too much of an effort I'd appreciate a release 😇 |
@swsnr I made a GH and npm release |
See also #61 (comment)
This is just a proposal on how to fix the problem from #61 (comment)
Type duplication is bad, but to convert the class approach one to one, it has to be done.
I don't think the class is necessary, as it is never really used as class, the constructor i not accessible, all members are private, so only member methods are usable, which make it, from a type perspective equal to an interface.
Edit: I found a way to avoid type duplication: see here