Skip to content

Commit

Permalink
type(zebra-stripes): fix type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 13, 2023
1 parent 70b9eff commit 3dcddbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/zebra-stripes/src/index.ts
Expand Up @@ -19,8 +19,8 @@ let stripe = Decoration.line({
});

function stripeDeco(view: EditorView) {
const step = view.state.facet(stepSize);
const num = view.state.facet(lineNumber);
const step = view.state.facet(stepSize) as number;
const num = view.state.facet<Array<number>>(lineNumber);
const builder = new RangeSetBuilder<Decoration>();
for (let { from, to } of view.visibleRanges) {
for (let pos = from; pos <= to; ) {
Expand Down

0 comments on commit 3dcddbd

Please sign in to comment.