Skip to content

Commit

Permalink
feat: display static members first
Browse files Browse the repository at this point in the history
  • Loading branch information
bendera committed Oct 21, 2023
1 parent 6d79886 commit 8eeb4de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/api-docs/src/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ class ApiDocsLayout extends LitElement {
cssParts
].every((arr) => arr.length === 0);

props.sort((p) => (p.static ? -1 : 1));

const attributes = attrs.filter(
(x) => !props.some((y) => y.name === x.fieldName)
);
Expand Down

0 comments on commit 8eeb4de

Please sign in to comment.