-
Notifications
You must be signed in to change notification settings - Fork 708
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
Is tsconfig.json required? #2304
Comments
Yes, it's currently required. I'd be open to a PR which made it not required, but since the vast majority of TS projects will have a tsconfig, figuring out how to match tsc's behavior there hasn't been a priority |
A hack for anyone else to get around this is to write a temp tsconfig with just echo '{}' >tsconfig.json && typedoc --entryPoints index.d.ts; rm tsconfig.json |
Hi @Gerrit0. Thanks for all your work on TypeDoc along with other present and past maintainers!. Cool, glad this was asked as I'm coming from the ESM native side of things and generating Something like this will then be possible: // Create a new TypeDoc application instance.
const app = new Application();
await app.bootstrapWithPlugins({
// A few other options...
tsconfig: { /* TSConfig data */ }
}); Is there any general known timing on when And general heads up.. I do have really neat other TypeDoc related things I'll get in touch about / release / drop a note in a couple of weeks. So cool stuff incoming. :D |
You can already set tsconfig options ( 0.25 has no planned release date yet, I've been very busy recently, so have barely even started on what I want to include with it. |
It looks like this can probably be done via |
Yeah.. You can use Edit: Ahh... but as you mentioned above I'll look into |
Search terms
tsconfig required
Question
I recently had some .d.ts files that I had a bunch of documentation in. This was all generated from native Rust bindings using https://napi.rs/
Basically:
And I wanted to run
typedoc --entryPoints index.d.ts
and have it just work. No need to have a tsconfig.json file when I'm not even using JavaScript! 😂 It's all native codegen magic.And... I couldn't.
Is there a way to magically say "no i don't need a tsconfig, just give me docs" ?? sort of like how i can do
tsc file.ts
and it will just work even with no tsconfig.json.The text was updated successfully, but these errors were encountered: