-
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
No reflection on object literals #901
Comments
It's partly working. See below: And my test code to produce docs is this: class Test {
public email?: { id: string, isVerified?: boolean }
}
const childMappings: {host: number, child: Function}[] = [];
const test2 = {
hi: "hi",
test: "test"
} We can see that On the other hand, So I really don't know what's happening here. I need some more verification...!? @williamkbentley |
Weird 😟 |
Are there any news guys? I face the same problem and here is a minimal reproduction: Test codeexport interface MyEvent<Type extends string, Payload> {
type: Type;
payload?: Payload;
}
export type FooEvent = MyEvent<'foo', {
some: string;
data: number;
}> typedoc.json{
"src": [
"./test.ts"
],
"mode": "file",
"module": "umd",
"target": "es5",
"out": "docs"
} Generated docsIt would be great to see a list of properties for payload e.g.
|
I'm still having this issue with export type TOptions = string | {number?: number; [target: string]: any}; Generated: TOptions
Ƭ TOptions: string | object Config: "typedoc": "typedoc --out packages/site/docs/api packages/core/src/index.ts --mode library --readme none --excludePrivate --plugin typedoc-plugin-markdown --theme docusaurus2", |
Huh, that's weird, I would have expected it to render |
I can't reproduce with the default theme - this seems to be a bug with typedoc-plugin-markdown. |
Thanks, I'll report an issue there instead |
From TypeDoc src\lib\utils\component.ts:
const childMappings: {host: ChildableComponent<any, any>, child: Function}[] = [];
Generates:
No information on the object literal, just object.
Likewise on this example:
/** Email details */
public email?: { id: string, isVerified?: boolean }
Generates:
Again, just object. Is it possible to get reflection information on the object literal?
The text was updated successfully, but these errors were encountered: