File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,11 @@ export default class IncludeFragmentElement extends HTMLElement {
50
50
this . _attached = false
51
51
}
52
52
53
- static get observedAttributes ( ) {
53
+ static get observedAttributes ( ) : string [ ] {
54
54
return [ 'src' ]
55
55
}
56
56
57
- get src ( ) {
57
+ get src ( ) : string {
58
58
const src = this . getAttribute ( 'src' )
59
59
if ( src ) {
60
60
const link = this . ownerDocument ! . createElement ( 'a' )
@@ -69,19 +69,19 @@ export default class IncludeFragmentElement extends HTMLElement {
69
69
this . setAttribute ( 'src' , val )
70
70
}
71
71
72
- get accept ( ) {
72
+ get accept ( ) : string {
73
73
return this . getAttribute ( 'accept' ) || ''
74
74
}
75
75
76
76
set accept ( val : string ) {
77
77
this . setAttribute ( 'accept' , val )
78
78
}
79
79
80
- get data ( ) {
80
+ get data ( ) : Promise < string > {
81
81
return getData ( this )
82
82
}
83
83
84
- attributeChangedCallback ( attribute : string ) {
84
+ attributeChangedCallback ( attribute : string ) : void {
85
85
if ( attribute === 'src' ) {
86
86
// Source changed after attached so replace element.
87
87
if ( this . _attached ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "module" : " esnext " ,
3
+ "module" : " es2020 " ,
4
4
"target" : " es2017" ,
5
5
"strict" : true ,
6
6
"declaration" : true ,
You can’t perform that action at this time.
0 commit comments