Rename types
This commit is contained in:
parent
26cd95cfda
commit
49f2d69e59
6 changed files with 13 additions and 11 deletions
|
|
@ -9,10 +9,7 @@ import type {
|
|||
ViewUpdate
|
||||
} from "@codemirror/view";
|
||||
import { RemoteCursorWidget } from "./remote-cursor-widget";
|
||||
import type {
|
||||
CursorSpan,
|
||||
DocumentWithMaybeOutdatedClientCursors
|
||||
} from "sync-client";
|
||||
import type { CursorSpan, MaybeOutdatedClientCursors } from "sync-client";
|
||||
import type { App } from "obsidian";
|
||||
import { MarkdownView } from "obsidian";
|
||||
|
||||
|
|
@ -120,7 +117,7 @@ export const remoteCursorsPlugin = ViewPlugin.fromClass(
|
|||
);
|
||||
|
||||
export function setCursors(
|
||||
clients: DocumentWithMaybeOutdatedClientCursors[],
|
||||
clients: MaybeOutdatedClientCursors[],
|
||||
app: App
|
||||
): void {
|
||||
cursors = [
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import type { Workspace } from "obsidian";
|
||||
import { FileView, setIcon } from "obsidian";
|
||||
import type { SyncClient } from "sync-client";
|
||||
import { DocumentUpdateStatus } from "sync-client";
|
||||
import { DocumentSyncStatus } from "sync-client";
|
||||
import "./editor-sync-line.scss";
|
||||
|
||||
export function updateEditorStatusDisplay(
|
||||
|
|
@ -35,7 +35,7 @@ export function updateEditorStatusDisplay(
|
|||
|
||||
const isLoading =
|
||||
client.getDocumentSyncingStatus(filePath) ==
|
||||
DocumentUpdateStatus.SYNCING;
|
||||
DocumentSyncStatus.SYNCING;
|
||||
|
||||
if (isLoading) {
|
||||
element.classList.add("loading");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue