Skip to content

Commit

Permalink
Make code compile with TS5
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Aug 17, 2023
1 parent 84d75c3 commit 8066828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export abstract class Text implements Iterable<string> {
/// Retrieve the text between the given points.
slice(from: number, to: number = this.length): Text {
let parts: Text[] = []
this.decompose(from, to, parts, 0)
this.decompose(from, to, parts, 0 as Open)
return TextNode.from(parts, to - from)
}

Expand Down

0 comments on commit 8066828

Please sign in to comment.