runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
500 stars 61 forks source link

Output contains incorrect backslash in union type #275

Open timonson opened 9 months ago

timonson commented 9 months ago

Hello,

the analyzer converts * @property {Record<string,Attribute>|null} attr - Custom attributes for the anchor element. to:

## Properties

| Property | Type                               | Default | Description                               |
|----------|------------------------------------|---------|-------------------------------------------|
| `attr`   | `Record<string,Attribute> \| null` | null    | Custom attributes for the anchor element. |

The backslash in the output Record<string,Attribute> \| null is wrong.

Thank you!