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

A bit unclear about the purpose of declareExternallyReferenced and intention #550

Closed
v-ahuja opened this issue Aug 28, 2023 · 2 comments
Closed

Comments

@v-ahuja
Copy link

v-ahuja commented Aug 28, 2023

My use case is the following:

  1. I'd like schema_one.json to depend on schema_two.json
  2. Generated file schema_two.ts should reference generated filed schema_two.ts

While testing declareExternallyReferenced false via the CLI, I see that nothing in definitions is generated in schema_one.ts. However, my expectation was that only external types wouldn't be generated.

For now, im going to stick everything in one .json schema file. I think it might be worthwhile having a bit of a further explanation in the README.md as I see other people also asking questions about this.

P.S. Very useful tool and thank you for making it.

@GabenGar
Copy link

GabenGar commented Jan 1, 2024

Can you provide the example schemas at least?

@bcherny
Copy link
Owner

bcherny commented Jun 25, 2024

Dup of #525

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

No branches or pull requests

3 participants