Skip to content
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

TS expose node interface #153

Closed
ghost opened this issue Nov 5, 2022 · 3 comments
Closed

TS expose node interface #153

ghost opened this issue Nov 5, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Nov 5, 2022

Is your feature request related to a problem? Please describe.
I'm using xmlbuilder2 in a node application for a SAML implementation, the Node implementation used by xmlbuilder2 differs from the available Node interface accessible through the dom types so it results in a type issue.

Describe the solution you'd like
It would be helpful if the Node interface is exposed for use in node applications.

Describe alternatives you've considered
I've considered casting, but that's an ugly mess I'd like to avoid since casting is prone to lead to errors.

Additional context

@ghost ghost added the enhancement New feature or request label Nov 5, 2022
@ghost ghost assigned oozcitak Nov 5, 2022
@asportnoy
Copy link

Not ideal, but you can use ReturnType<> on the create function (or one of the other ones) to get the type. Better than nothing though.

@jkowalleck
Copy link
Contributor

jkowalleck commented Apr 26, 2023

i suppose this is caused by #165

@universalhandle
Copy link
Collaborator

@StefanSafeguard, I'm closing this issue as I believe it was addressed (though not in exactly the way you requested) in v3.1.1. Please reopen with a code snippet and/or more information if something further is required.

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

No branches or pull requests

4 participants