runem / web-component-analyzer

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

Output contains incorrect backslash in union type #275

Open timonson opened 1 year ago

timonson commented 1 year 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!