Skip to content

Commit 3dcddbd

Browse files
committedOct 13, 2023
type(zebra-stripes): fix type error.
1 parent 70b9eff commit 3dcddbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎extensions/zebra-stripes/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ let stripe = Decoration.line({
1919
});
2020

2121
function stripeDeco(view: EditorView) {
22-
const step = view.state.facet(stepSize);
23-
const num = view.state.facet(lineNumber);
22+
const step = view.state.facet(stepSize) as number;
23+
const num = view.state.facet<Array<number>>(lineNumber);
2424
const builder = new RangeSetBuilder<Decoration>();
2525
for (let { from, to } of view.visibleRanges) {
2626
for (let pos = from; pos <= to; ) {

0 commit comments

Comments
 (0)
Please sign in to comment.