Commit cbd4f51
committed
Style Schema Reference index-property-only types
TypeDoc generates a `.tsd-type-declaration` block as a direct child of
the `.type` wrapper for types with only index properties (e.g.,
`type Foo = { [key: string]: unknown }`). This differs from interface
members, which are nested inside `.tsd-member` elements.
Add CSS rules for `.type > .tsd-type-declaration` to hide the redundant
block when there are no doc comments, hide the templated "Type
Declaration" heading, and style the index property heading with
monospace font to match other member headings.1 parent 84aeaf2 commit cbd4f51
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
367 | 386 | | |
368 | 387 | | |
369 | 388 | | |
| |||
0 commit comments