File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
packages/lit-dev-content/site/docs Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Lit components receive input and store their state as JavaScript class fields or
1616``` ts
1717class MyElement extends LitElement {
1818 @property ()
19- name: string ;
19+ name? : string ;
2020}
2121```
2222
@@ -83,7 +83,7 @@ Use the `@property` decorator with a class field declaration to declare a reacti
8383``` ts
8484class MyElement extends LitElement {
8585 @property ({type: String })
86- mode: string ;
86+ mode? : string ;
8787
8888 @property ({attribute: false })
8989 data = {};
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Lit components receive input and store their state as JavaScript class fields or
1616``` ts
1717class MyElement extends LitElement {
1818 @property ()
19- name: string ;
19+ name? : string ;
2020}
2121```
2222
@@ -83,7 +83,7 @@ Use the `@property` decorator with a class field declaration to declare a reacti
8383``` ts
8484class MyElement extends LitElement {
8585 @property ({type: String })
86- mode: string ;
86+ mode? : string ;
8787
8888 @property ({attribute: false })
8989 data = {};
You can’t perform that action at this time.
0 commit comments