fix: import `Socket` as type (#7446)

This commit is contained in:
David Luzar 2023-12-16 11:15:04 +01:00 committed by GitHub
parent 20e3acf7a6
commit 561e919a2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import { newElementWith } from "../../packages/excalidraw/element/mutateElement"
import { BroadcastedExcalidrawElement } from "./reconciliation";
import { encryptData } from "../../packages/excalidraw/data/encryption";
import { PRECEDING_ELEMENT_KEY } from "../../packages/excalidraw/constants";
import { Socket } from "socket.io-client";
import type { Socket } from "socket.io-client";
class Portal {
collab: TCollabClass;

View File

@ -21,7 +21,7 @@ import { MIME_TYPES } from "../../packages/excalidraw/constants";
import { reconcileElements } from "../collab/reconciliation";
import { getSyncableElements, SyncableExcalidrawElement } from ".";
import { ResolutionType } from "../../packages/excalidraw/utility-types";
import { Socket } from "socket.io-client";
import type { Socket } from "socket.io-client";
// private
// -----------------------------------------------------------------------------