@@ -694,13 +694,13 @@ export default class PostEditor {
694694
695695 _replaceSection ( section : Section , newSections : Section [ ] ) {
696696 let nextSection = section . next
697- let collection = ( ( section . parent as unknown ) as HasChildSections ) . sections
697+ let collection = ( section . parent as unknown as HasChildSections ) . sections
698698
699699 let nextNewSection = newSections [ 0 ]
700700 if ( isMarkupSection ( nextNewSection ) && isListItem ( section ) ) {
701701 // put the new section after the ListSection (section.parent)
702702 // instead of after the ListItem
703- collection = ( ( section . parent . parent as unknown ) as HasChildSections ) . sections
703+ collection = ( section . parent . parent as unknown as HasChildSections ) . sections
704704 nextSection = section . parent . next
705705 }
706706
@@ -922,7 +922,7 @@ export default class PostEditor {
922922 let attribute = `data-md-${ key } `
923923
924924 post . walkMarkerableSections ( range , section => {
925- const cbSection : Attributable = isListItem ( section ) ? section . parent : ( ( section as unknown ) as Attributable )
925+ const cbSection : Attributable = isListItem ( section ) ? section . parent : ( section as unknown as Attributable )
926926
927927 if ( cb ( cbSection , attribute ) === true ) {
928928 this . _markDirty ( section )
@@ -1090,7 +1090,7 @@ export default class PostEditor {
10901090
10911091 _changeSectionToListItem ( section : ListSection | Markerable , newTagName : string ) {
10921092 let isAlreadyCorrectListItem =
1093- section . isListItem && ( ( section . parent as unknown ) as TagNameable ) . tagName === newTagName
1093+ section . isListItem && ( section . parent as unknown as TagNameable ) . tagName === newTagName
10941094
10951095 if ( isAlreadyCorrectListItem ) {
10961096 return section
@@ -1149,7 +1149,7 @@ export default class PostEditor {
11491149 const activeSection = this . editor . activeSection
11501150 const nextSection = activeSection && activeSection . next
11511151
1152- const collection = ( this . editor . post . sections as unknown ) as LinkedList < Section >
1152+ const collection = this . editor . post . sections as unknown as LinkedList < Section >
11531153 this . insertSectionBefore ( collection , section , nextSection )
11541154 }
11551155
0 commit comments