waveterm/frontend/types/custom.d.ts

31 lines
940 B
TypeScript
Raw Normal View History

// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
2024-05-27 08:05:11 +02:00
declare global {
type TabLayoutData = {
blockId: string;
};
type ElectronApi = {
/**
* Determines whether the current app instance is a development build.
* @returns True if the current app instance is a development build.
*/
isDev: () => boolean;
/**
* Determines whether the current app instance is hosted in a Vite dev server.
* @returns True if the current app instance is hosted in a Vite dev server.
*/
isDevServer: () => boolean;
/**
* Get a point value representing the cursor's position relative to the calling BrowserWindow
* @returns A point value.
*/
getCursorPoint: () => Electron.Point;
};
type SubjectWithRef<T> = rxjs.Subject<T> & { refCount: number; release: () => void };
2024-05-27 08:05:11 +02:00
}
export {};