cvmts: Use npm versions of superqemu/nodejs-rfb.
We publish them now, so let's use them in cvmts! Additionally, this removes the 'shared' module entirely, since it has little purpose anymore. The logger is replaced with pino (because superqemu uses pino for logging itself).
This commit is contained in:
@@ -1,7 +1,20 @@
|
||||
import { Size } from '@cvmts/shared';
|
||||
import EventEmitter from 'node:events';
|
||||
|
||||
export default interface VMDisplay extends EventEmitter {
|
||||
// not great but whatever
|
||||
// nodejs-rfb COULD probably export them though.
|
||||
export type Size = {
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
|
||||
export type Rect = {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
|
||||
export interface VMDisplay extends EventEmitter {
|
||||
Connect(): void;
|
||||
Disconnect(): void;
|
||||
Connected(): boolean;
|
||||
|
||||
Reference in New Issue
Block a user