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

feat(generator): separate name and namespace name config #1235

Merged
merged 4 commits into from
Oct 28, 2024

Conversation

jasonkuhrt
Copy link
Member

@jasonkuhrt jasonkuhrt commented Oct 28, 2024

This PR makes it possible for the client name to be controlled without affecting the generated client interface (exports).

This helps with our documentation tooling wherein we want to have examples import like import { Graffle } from './graffle/__.js' as if we are using the default, but meanwhile the source code for those examples lives in a codebase with multiple schemas so its name cannot be "default". Now, the interface stays the same but in the source code the name is "pokemone" while in the website it is "default" but in both cases the interface is the same, the names are only affecting how the generated client types are looked up which is self-contained.

@jasonkuhrt jasonkuhrt changed the title chore: simplify examples feat(generator): separate name and namespace name config Oct 28, 2024
@jasonkuhrt jasonkuhrt merged commit c7f7dc5 into main Oct 28, 2024
14 checks passed
@jasonkuhrt jasonkuhrt deleted the chore/simplify-website-graffle-examples branch October 28, 2024 15:16
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.

1 participant