Skip to content

Style Schema Reference index-property-only types#2215

Open
jonathanhefner wants to merge 1 commit intomodelcontextprotocol:mainfrom
jonathanhefner:schema-ref-index-property-only-types
Open

Style Schema Reference index-property-only types#2215
jonathanhefner wants to merge 1 commit intomodelcontextprotocol:mainfrom
jonathanhefner:schema-ref-index-property-only-types

Conversation

@jonathanhefner
Copy link
Member

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.


Related to #2139.

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.
@jonathanhefner jonathanhefner requested a review from a team as a code owner February 6, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant