-
Notifications
You must be signed in to change notification settings - Fork 701
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
Runtime traversal utils for browser usage #2528
Comments
There are not - typedoc doesn't provide a browser bundle. Theoretically the models could be extracted with some work to remove node dependencies, but they currently also depend on node apis. |
One thing I'm trying to figure out, and kinda gave up on last night (for now?) is finding the object in the output-json that represents a like in This is the code I was last trying: https://github.com/universal-ember/kolay/pull/43/files#diff-e67be3ef957214cba90a21f8bcc80542a449df7086fb062c8b933ab4ee76a24aR9 |
Don't have time to look at your code tonight, but https://typedoc.org/api/modules/JSONOutput.html has interfaces which describe the output.
|
I spent a bit of time looking at your code... and I'm not sure what you're actually trying to do. In the case of |
In my specific case, interface Signature {
Element: HTMLElement;
Args: { ... };
Blocks: { ... };
}
yeah, this kinda makes sense -- I've generated typedoc JSON from emitted declarations, rather than from source what I'm trying to do with references, is in this situation: export interface Signature { ... }
export default class Demo extends Component<Signature> { ... } I want to get the type of class Demo extends Component<Signature>
// ^ what properties are on this? The details, if you're curious 😅
yeah, the base class I'm referencing only takes one type argument (or function, etc), I have these situations where I'm trying to obtain the type:
at a super high level, I'm trying to generate nice looking type docs for known shapes of types/interfaces -- examples here (where "not currently supported" means I couldn't figure it out):
I appreciate your time!! <3 |
It will be - if it is exported from your entry point. I suspect whatever is passed to TypeDoc only exports the wrapping class from the entrypoint. It looks like cloning your repo and I am interested in someday providing a minimal bundle that can be included in browser builds, but from a quick skim to refresh my memory from the last time I looked at this... getting that is probably more than an afternoon of work. |
Converting this to a feature request, will probably be 0.27... december-ish? |
Search terms
I found in response to one of my other questions: #2392
These were suggested;
how do I get access to these?
Question
how do I get access to traversal utils? is the browser bundle small? (should be 0 dependencies, yeah?)
The text was updated successfully, but these errors were encountered: