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

Always export static types? #54

Open
runeh opened this issue Apr 22, 2021 · 1 comment
Open

Always export static types? #54

runeh opened this issue Apr 22, 2021 · 1 comment

Comments

@runeh
Copy link
Collaborator

runeh commented Apr 22, 2021

The static types now look like this:

type Something = rt.Static<typeof something>

They are not exported by default. The static types are not used inside the generated code, so it might make sense that they are always exported? You'll probably want them exported even if the runtype isn't.

@simenandre
Copy link
Owner

Yeah, we probably want them to be exported as default. Might be some weird cases where you'd like to turn that off though. 🤷‍♂️

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