429 B18 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8export type VSCodeAPI = {
9 // eslint-disable-next-line @typescript-eslint/no-explicit-any
10 postMessage(message: any): void;
11};
12
13declare global {
14 function acquireVsCodeApi(): VSCodeAPI;
15}
16
17export const vscodeApi = acquireVsCodeApi();
18