1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-28 13:15:25 +00:00
code-server-2/typings/api.d.ts

28 lines
511 B
TypeScript
Raw Normal View History

2019-07-17 16:57:26 +00:00
import * as vscode from "vscode";
export { vscode };
export interface IdeReadyEvent extends CustomEvent<void> {
readonly vscode: typeof vscode;
readonly ide: typeof coder;
}
declare global {
interface Window {
/**
* Full VS Code extension API.
*/
vscode?: typeof vscode;
/**
* Coder API.
*/
ide?: typeof coder;
/**
* Listen for when the IDE API has been set and is ready to use.
*/
addEventListener(event: "ide-ready", callback: (event: IdeReadyEvent) => void): void;
}
}