Skip to content

Commit

Permalink
Use @types/vscode-webview package (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew authored Feb 13, 2024
1 parent aaeb6c3 commit 6d17110
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 7 additions & 0 deletions webview/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions webview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"@types/mousetrap": "^1.6.9",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/vscode-webview": "^1.57.5",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.7.1",
Expand Down
8 changes: 1 addition & 7 deletions webview/src/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ import {
import { ExcalidrawElement } from "@excalidraw/excalidraw/types/element/types";
import { AppState, BinaryFiles } from "@excalidraw/excalidraw/types/types";

declare global {
interface Window {
acquireVsCodeApi(): any;
}
}

export const vscode = window.acquireVsCodeApi();
export const vscode = acquireVsCodeApi();

const textEncoder = new TextEncoder();

Expand Down

0 comments on commit 6d17110

Please sign in to comment.