This repository was archived by the owner on Oct 24, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,15 @@ function genElementDeclaration(
108
108
d += `${ idt ( indent ) } class ${ className } {\n` ;
109
109
}
110
110
111
- for ( const property of element . properties ) {
111
+ for ( const [ , property ] of element . properties ) {
112
112
if ( property . privacy === 'private' || property . inheritedFrom != null ) {
113
113
continue ;
114
114
}
115
115
d += `${ idt ( indent ) } ${ getVisibility ( property ) } ${ property . name } ${
116
116
getTypeAnnotation ( property , true ) } ;\n`;
117
117
}
118
118
119
- for ( const method of element . methods ) {
119
+ for ( const [ , method ] of element . methods ) {
120
120
const methodText = genMethod ( method , indent + 2 ) ;
121
121
if ( methodText ) {
122
122
d += methodText ;
@@ -145,14 +145,14 @@ function genMixinDeclaration(
145
145
146
146
d += `${ idt ( indent ) } interface ${ name } ${ extendsText } {\n`
147
147
148
- for ( const property of mixin . properties ) {
148
+ for ( const [ , property ] of mixin . properties ) {
149
149
const propertyText = genProperty ( property , indent + 2 ) ;
150
150
if ( propertyText ) {
151
151
d += propertyText ;
152
152
}
153
153
}
154
154
155
- for ( const method of mixin . methods ) {
155
+ for ( const [ , method ] of mixin . methods ) {
156
156
const methodText = genMethod ( method , indent + 2 ) ;
157
157
if ( methodText ) {
158
158
d += methodText ;
You can’t perform that action at this time.
0 commit comments