mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-30 10:17:19 +00:00
26 lines
684 B
TypeScript
26 lines
684 B
TypeScript
import { Board } from "./boards-service";
|
|
|
|
export const CoreServicePath = '/services/core-service';
|
|
export const CoreService = Symbol('CoreService');
|
|
export interface CoreService {
|
|
compile(options: CoreService.Compile.Options): Promise<void>;
|
|
upload(options: CoreService.Upload.Options): Promise<void>;
|
|
}
|
|
|
|
export namespace CoreService {
|
|
|
|
export namespace Upload {
|
|
export interface Options {
|
|
readonly uri: string;
|
|
readonly board: Board;
|
|
readonly port: string;
|
|
}
|
|
}
|
|
|
|
export namespace Compile {
|
|
export interface Options {
|
|
readonly uri: string;
|
|
readonly board: Board;
|
|
}
|
|
}
|
|
} |