@@ -192,7 +192,6 @@ export const fromMarkdown =
192
192
193
193
return compiler ( options ) (
194
194
postprocess (
195
- // @ts -expect-error: micromark types need to accept `null`.
196
195
parse ( options ) . document ( ) . write ( preprocess ( ) ( value , encoding , true ) )
197
196
)
198
197
)
@@ -504,7 +503,6 @@ function compiler(options) {
504
503
firstBlankLineIndex &&
505
504
( ! lineIndex || firstBlankLineIndex < lineIndex )
506
505
) {
507
- // @ts -expect-error Patched.
508
506
listItem . _spread = true
509
507
}
510
508
@@ -523,9 +521,10 @@ function compiler(options) {
523
521
if ( event [ 1 ] . type === types . listItemPrefix ) {
524
522
listItem = {
525
523
type : 'listItem' ,
526
- // @ts -expect-error Patched
527
524
_spread : false ,
528
- start : Object . assign ( { } , event [ 1 ] . start )
525
+ start : Object . assign ( { } , event [ 1 ] . start ) ,
526
+ // @ts -expect-error: we’ll add `end` in a second.
527
+ end : undefined
529
528
}
530
529
// @ts -expect-error: `listItem` is most definitely defined, TS...
531
530
events . splice ( index , 0 , [ 'enter' , listItem , event [ 2 ] ] )
@@ -537,7 +536,6 @@ function compiler(options) {
537
536
}
538
537
}
539
538
540
- // @ts -expect-error Patched.
541
539
events [ start ] [ 1 ] . _spread = listSpread
542
540
return length
543
541
}
@@ -1339,7 +1337,6 @@ function compiler(options) {
1339
1337
type : 'list' ,
1340
1338
ordered : token . type === 'listOrdered' ,
1341
1339
start : null ,
1342
- // @ts -expect-error Patched.
1343
1340
spread : token . _spread ,
1344
1341
children : [ ]
1345
1342
}
@@ -1352,7 +1349,6 @@ function compiler(options) {
1352
1349
function listItem ( token ) {
1353
1350
return {
1354
1351
type : 'listItem' ,
1355
- // @ts -expect-error Patched.
1356
1352
spread : token . _spread ,
1357
1353
checked : null ,
1358
1354
children : [ ]
0 commit comments