Skip to content

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

Merged
merged 2 commits into from
Mar 24, 2025
Merged

Conversation

Totto16
Copy link
Collaborator

@Totto16 Totto16 commented Mar 23, 2025

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

@Totto16 Totto16 mentioned this pull request Mar 23, 2025
@Totto16 Totto16 force-pushed the fix_gnome_48_console branch 2 times, most recently from 76ddaf3 to efcc2f8 Compare March 23, 2025 15:21
@swsnr
Copy link
Collaborator

swsnr commented Mar 23, 2025

Sorry accidentally approved 😅 Didn't mean to, this needs at least one change to make it usable

@Totto16 Totto16 force-pushed the fix_gnome_48_console branch from d2856ed to 1752816 Compare March 23, 2025 21:50
@Totto16 Totto16 requested a review from swsnr March 23, 2025 21:50
Copy link
Collaborator

@JumpLink JumpLink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well 👍

Copy link
Collaborator

@swsnr swsnr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks 🙏

@Totto16 Totto16 merged commit 0c9f55b into main Mar 24, 2025
2 checks passed
@Totto16 Totto16 deleted the fix_gnome_48_console branch March 24, 2025 17:03
@Totto16
Copy link
Collaborator Author

Totto16 commented Mar 24, 2025

@swsnr should we / I make a new release, as you like to use this type?

@swsnr
Copy link
Collaborator

swsnr commented Mar 24, 2025

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 😇

@Totto16
Copy link
Collaborator Author

Totto16 commented Mar 24, 2025

@swsnr I made a GH and npm release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants