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

Add flag to generate cross platform Typescript #365

Open
BlueSialia opened this issue Mar 6, 2023 · 1 comment
Open

Add flag to generate cross platform Typescript #365

BlueSialia opened this issue Mar 6, 2023 · 1 comment
Assignees

Comments

@BlueSialia
Copy link

Currently the Client Library Generator creates a client for browser by default, but with the --node flag we can create a client for NodeJS.

I've noticed the only difference between them is that the client for node imports node-fetch and ws.

Would it be possible to have a flag, say --isomorphic, that will produce a client that imports isomorphic-fetch (or cross-fetch) and isomorphic-ws?

I want to use the Zeus client in both platforms and I currently add those imports manually everytime I generate the client.

@aexol
Copy link
Collaborator

aexol commented Mar 15, 2023

of course

@aexol aexol self-assigned this Mar 15, 2023
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

No branches or pull requests

2 participants