Skip to content

Commit 36a6595

Browse files
authored
Cast step to fix build error (#249)
1 parent 6d878bf commit 36a6595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codemirror-extension/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const stripe = Decoration.line({
3838

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

0 commit comments

Comments
 (0)