File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,10 +184,12 @@ class Assembler {
184184 }
185185}
186186
187- Assembler . prototype . stringValue = Assembler . prototype . _saveValue ;
188- Assembler . prototype . startObject = startObject ( Object ) ;
189- Assembler . prototype . startArray = startObject ( Array ) ;
190- Assembler . prototype . endArray = Assembler . prototype . endObject ;
187+ // TS 7 checkJs: no expando-prototype inference
188+ const proto = /** @type {any } */ ( Assembler . prototype ) ;
189+ proto . stringValue = Assembler . prototype . _saveValue ;
190+ proto . startObject = startObject ( Object ) ;
191+ proto . startArray = startObject ( Array ) ;
192+ proto . endArray = Assembler . prototype . endObject ;
191193
192194const assembler = options => new Assembler ( options ) ;
193195Assembler . assembler = assembler ;
Original file line number Diff line number Diff line change @@ -261,7 +261,9 @@ class FlexAssembler {
261261 }
262262}
263263
264- FlexAssembler . prototype . endArray = FlexAssembler . prototype . endObject ;
264+ // TS 7 checkJs: no expando-prototype inference
265+ const proto = /** @type {any } */ ( FlexAssembler . prototype ) ;
266+ proto . endArray = FlexAssembler . prototype . endObject ;
265267
266268const flexAssembler = options => new FlexAssembler ( options ) ;
267269FlexAssembler . flexAssembler = flexAssembler ;
You can’t perform that action at this time.
0 commit comments