addons/vscode/webview/vscodeApi.tsblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318export type VSCodeAPI = {
b69ab319 // eslint-disable-next-line @typescript-eslint/no-explicit-any
b69ab3110 postMessage(message: any): void;
b69ab3111};
b69ab3112
b69ab3113declare global {
b69ab3114 function acquireVsCodeApi(): VSCodeAPI;
b69ab3115}
b69ab3116
b69ab3117export const vscodeApi = acquireVsCodeApi();