mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-10-15 22:38:32 +00:00
PROEDITOR-7: Cloned the Library Manager layout.
To match with the official Arduino editor's UI. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -3,10 +3,18 @@ import { ArduinoComponent } from "./arduino-component";
|
||||
export const LibraryServicePath = '/services/library-service';
|
||||
export const LibraryService = Symbol('LibraryService');
|
||||
export interface LibraryService {
|
||||
search(options: { query?: string }): Promise<{ items: Library[] }>;
|
||||
search(options: { query?: string, props?: LibraryService.Search.Props }): Promise<{ items: Library[] }>;
|
||||
install(library: Library): Promise<void>;
|
||||
}
|
||||
|
||||
export namespace LibraryService {
|
||||
export namespace Search {
|
||||
export interface Props {
|
||||
[key: string]: string | undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export interface Library extends ArduinoComponent {
|
||||
readonly builtIn?: boolean;
|
||||
}
|
||||
|
Reference in New Issue
Block a user