Skip to content

Commit

Permalink
Fix type and import errors introduced by previous changes
Browse files Browse the repository at this point in the history
FIX: Fix accidental non-optional field in layer config objects.
  • Loading branch information
marijnh committed Mar 6, 2024
1 parent cbc5678 commit 87f8c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/docview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {getAttrs} from "./attributes"
import {clientRectsFor, isEquivalentPosition, maxOffset, Rect, scrollRectIntoView,
getSelection, hasSelection, textRange, DOMSelectionState} from "./dom"
import {ViewUpdate, decorations as decorationsFacet, outerDecorations,
ChangedRange, ScrollTarget, getScrollMargins, requestMeasureOnDocUpdate} from "./extension"
ChangedRange, ScrollTarget, getScrollMargins} from "./extension"
import {EditorView} from "./editorview"
import {Direction} from "./bidi"

Expand Down
2 changes: 1 addition & 1 deletion src/layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ interface LayerConfig {
update(update: ViewUpdate, layer: HTMLElement): boolean
/// Whether to update this layer every time the document view
/// changes. Defaults to true.
updateOnDocViewUpdate: boolean
updateOnDocViewUpdate?: boolean
/// Build a set of markers for this layer, and measure their
/// dimensions.
markers(view: EditorView): readonly LayerMarker[]
Expand Down

0 comments on commit 87f8c42

Please sign in to comment.