monaco-editor/website/src/shared.ts
2023-02-28 15:44:40 +01:00

27 lines
721 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { IMonacoSetup } from "./monaco-loader";
export type IMessage =
| {
kind: "initialize";
state: IPreviewState;
}
| {
kind: "update-css";
css: string;
};
export interface IPlaygroundProject {
js: string;
css: string;
html: string;
}
export interface IPreviewState extends IPlaygroundProject {
key: number;
monacoSetup: IMonacoSetup;
}