Skip to content

Commit

Permalink
Discard static fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardocavazza committed Jul 4, 2024
1 parent 7a6c046 commit 4943f2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-dancers-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chialab/plasma': patch
---

Discard static fields.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function filterPublicMemebers(declaration: CustomElementDeclaration) {
}

return declaration.members.filter((member) => {
if (member.kind !== 'field') {
if (member.kind !== 'field' || member.static) {
return false;
}
if (member.privacy && member.privacy !== 'public') {
Expand Down

0 comments on commit 4943f2c

Please sign in to comment.