mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-27 08:47:18 +00:00
34 lines
1013 B
TypeScript
34 lines
1013 B
TypeScript
import { JsonRpcServer } from '@theia/core/lib/common/messaging/proxy-factory';
|
|
import { Programmer } from './boards-service';
|
|
|
|
export const CoreServiceClient = Symbol('CoreServiceClient');
|
|
export interface CoreServiceClient {
|
|
notifyIndexUpdated(): void;
|
|
}
|
|
|
|
export const CoreServicePath = '/services/core-service';
|
|
export const CoreService = Symbol('CoreService');
|
|
export interface CoreService extends JsonRpcServer<CoreServiceClient> {
|
|
compile(options: CoreService.Compile.Options): Promise<void>;
|
|
upload(options: CoreService.Upload.Options): Promise<void>;
|
|
}
|
|
|
|
export namespace CoreService {
|
|
|
|
export namespace Compile {
|
|
export interface Options {
|
|
readonly sketchUri: string;
|
|
readonly fqbn: string;
|
|
readonly optimizeForDebug: boolean;
|
|
readonly programmer?: Programmer | undefined;
|
|
}
|
|
}
|
|
|
|
export namespace Upload {
|
|
export interface Options extends Compile.Options {
|
|
readonly port: string;
|
|
}
|
|
}
|
|
|
|
}
|