-
-
Notifications
You must be signed in to change notification settings - Fork 735
Json deserialization #910
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
Comments
Neat idea! Currently not possible, and this would probably require a fair bit of work since serialization is spread out over so many different classes right now. If you want a const td = require('typedoc');
const app = new td.Application({
// options
});
const inputFiles = app.expandInputFiles('src');
const projectReflection = app.convert(inputFiles); |
From what I (believe to) recall this is practically impossible at the moment because:
A better way might be to stop accessing reflection instances in the theme and instead rely on a reduced dataset (like from toObject()). |
I recently spent quite a bit of time in the serialization code and agree with mootari. There isn't any nice way to resolve this. If you need a |
So... this seems to be a recurring theme with TypeDoc for me. I think something is impossible, then 6 months or a year later I come back and realize - this isn't that difficult. There are a few things that need to happen first (and some of these are being done for library mode), but this is definitely doable, and I really like the idea.
The deserializer should work in much the same way as the serializer used in library mode (not pushed to GH yet, still have another 200 or so type errors to fix...) |
#1180 is the more common user facing side of this feature, so I'm going to track it over there. |
In order to easily use the json file for documentation rendering, could it be possible to "deserialize" and get a ProjectReflection object ?
The text was updated successfully, but these errors were encountered: