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
16
16
``` ts
17
17
class MyElement extends LitElement {
18
18
@property ()
19
- name: string ;
19
+ name? : string ;
20
20
}
21
21
```
22
22
@@ -83,7 +83,7 @@ Use the `@property` decorator with a class field declaration to declare a reacti
83
83
``` ts
84
84
class MyElement extends LitElement {
85
85
@property ({type: String })
86
- mode: string ;
86
+ mode? : string ;
87
87
88
88
@property ({attribute: false })
89
89
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
16
16
``` ts
17
17
class MyElement extends LitElement {
18
18
@property ()
19
- name: string ;
19
+ name? : string ;
20
20
}
21
21
```
22
22
@@ -83,7 +83,7 @@ Use the `@property` decorator with a class field declaration to declare a reacti
83
83
``` ts
84
84
class MyElement extends LitElement {
85
85
@property ({type: String })
86
- mode: string ;
86
+ mode? : string ;
87
87
88
88
@property ({attribute: false })
89
89
data = {};
You can’t perform that action at this time.
0 commit comments