mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-05-16 09:58:42 +00:00
16 lines
525 B
TypeScript
16 lines
525 B
TypeScript
export const ArduinoDaemonPath = '/services/arduino-daemon';
|
|
export const ArduinoDaemon = Symbol('ArduinoDaemon');
|
|
export interface ArduinoDaemon {
|
|
/**
|
|
* Returns with a promise that resolves with the port
|
|
* of the CLI daemon when it's up and running.
|
|
*/
|
|
getPort(): Promise<string>;
|
|
/**
|
|
* Unlike `getPort` this method returns with a promise
|
|
* that resolves to `undefined` when the daemon is not running.
|
|
* Otherwise resolves to the CLI daemon port.
|
|
*/
|
|
tryGetPort(): Promise<string | undefined>;
|
|
}
|