Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion docs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ body:has(#schema-reference) {

/* Sub-members */
.tsd-type-declaration {
/* Templated heading */
/* Templated heading ("Type Declaration") */
[data-typedoc-h="4"] {
display: none;
}
Expand Down Expand Up @@ -364,6 +364,25 @@ body:has(#schema-reference) {
display: none;
}
}

/* Types with only index properties (e.g., `type Foo = { [key: string]: unknown }`) */
.type > .tsd-type-declaration {
/* Hide property if no doc comments */
&:not(:has(.tsd-comment)) {
display: none;
}

/* Templated heading ("Type Declaration") */
[data-typedoc-h="4"] {
display: none;
}

/* Index property */
[data-typedoc-h="5"] {
font-family: var(--font-mono);
font-weight: 700;
}
}
}


Expand Down