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

Create a single three-types.d.ts file. #859

Closed
porterporter opened this issue Mar 15, 2024 · 1 comment
Closed

Create a single three-types.d.ts file. #859

porterporter opened this issue Mar 15, 2024 · 1 comment

Comments

@porterporter
Copy link

Hi,

I am trying to embed all of the three-ts-types src/ files into one (huge) .d.ts file. Do you know how I could edit the tsconfig.json file to bundle them all into one file?

I've tried using declaration with an outFile but when tsc succeeds it doesn't output a file.

Thanks!

@Methuselah96
Copy link
Contributor

I don't have any experience doing that. TypeScript does not provide a native way to do this, but microsoft/TypeScript#4433 presents some good ideas on how one might accomplish that with community-maintained tools, including API Extractor, rollup-plugin-dts, and tsup.

Best of luck, let me know if I can help with anything else.

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