Skip to content

Improve error message when misusing protected Node._shallowClone method#176

Open
chances wants to merge 1 commit intob-fuze:masterfrom
chances:improve-clone-error-msg
Open

Improve error message when misusing protected Node._shallowClone method#176
chances wants to merge 1 commit intob-fuze:masterfrom
chances:improve-clone-error-msg

Conversation

@chances
Copy link
Copy Markdown

@chances chances commented Aug 9, 2024

No description provided.

@b-fuze
Copy link
Copy Markdown
Owner

b-fuze commented Aug 15, 2024

I'm not opposed to merging this but ideally there would be a way to prevent people from using these private methods to begin with. I should be using private in TypeScript but that makes certain things a pain, aside from that I was hoping that having an underscore would discourage people from using them...

What probably needs to happen is that I need to either remove them from the public API type information or just refactor them as utility functions...

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.

2 participants