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

Separate types from implementation #13

Open
psibean opened this issue Apr 4, 2023 · 0 comments
Open

Separate types from implementation #13

psibean opened this issue Apr 4, 2023 · 0 comments

Comments

@psibean
Copy link
Contributor

psibean commented Apr 4, 2023

I'd like to have it setup so the types are in their own file, and the implementation in another, where both are then imported and exported from the index file.

The problem with this is, I still want to output a single index.d.ts file. Or, at the very. least, if a .d.ts file is generated for the implementation and the types, they should also be exported from the root in some way.

I seem to have issues / problems with getting this to work, ideally without any additional tooling. Worst case scenario, may consider tsup.

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

1 participant