Skip to content

Commit

Permalink
Cast step to fix build error (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
firai authored Oct 16, 2023
1 parent 6d878bf commit 36a6595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codemirror-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const stripe = Decoration.line({

// Create the range of lines requiring decorations
function stripeDeco(view: EditorView) {
const step = view.state.facet(stepSize);
const step = view.state.facet(stepSize) as number;
const builder = new RangeSetBuilder<Decoration>();
for (const { from, to } of view.visibleRanges) {
for (let pos = from; pos <= to; ) {
Expand Down

0 comments on commit 36a6595

Please sign in to comment.