| 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 | |
| 8 | export type VSCodeAPI = { |
| 9 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 10 | postMessage(message: any): void; |
| 11 | }; |
| 12 | |
| 13 | declare global { |
| 14 | function acquireVsCodeApi(): VSCodeAPI; |
| 15 | } |
| 16 | |
| 17 | export const vscodeApi = acquireVsCodeApi(); |
| 18 |