UNPKG

@theia/core

Version:

Theia is a cloud & desktop IDE framework implemented in TypeScript.

52 lines • 2.11 kB
import { interfaces, Container } from 'inversify'; import { TreeWidget, TreeProps } from './tree-widget.js'; import { TreeModel } from './tree-model.js'; import { Tree } from './tree.js'; import { TreeSelectionService } from './tree-selection.js'; import { TreeExpansionService } from './tree-expansion.js'; import { TreeNavigationService } from './tree-navigation.js'; import { TreeDecoratorService } from './tree-decorator.js'; import { TreeSearch } from './tree-search.js'; import { FuzzySearch } from './fuzzy-search.js'; import { SearchBoxFactory } from './search-box.js'; import { TreeFocusService } from './tree-focus-service.js'; export declare function isTreeServices(candidate?: Partial<TreeProps> | Partial<TreeContainerProps>): candidate is TreeContainerProps; export declare function createTreeContainer(parent: interfaces.Container, props?: Partial<TreeContainerProps>): Container; /** * @deprecated Please use TreeContainerProps instead of TreeProps * @since 1.23.0 */ export declare function createTreeContainer(parent: interfaces.Container, props?: Partial<TreeProps>): Container; export interface SearchBoxFactoryFactory { (context: interfaces.Context): SearchBoxFactory; } interface TreeConstants { searchBoxFactory: SearchBoxFactory; props: TreeProps; } interface TreeServices { tree: Tree; selectionService: TreeSelectionService; expansionService: TreeExpansionService; navigationService: TreeNavigationService; model: TreeModel; widget: TreeWidget; search: TreeSearch; fuzzy: FuzzySearch; decoratorService: TreeDecoratorService; focusService: TreeFocusService; } interface TreeTypes extends TreeServices, TreeConstants { } export type TreeIdentifiers = { [K in keyof TreeTypes]: interfaces.ServiceIdentifier<TreeTypes[K]>; }; type TreeServiceProviders = { [K in keyof TreeServices]: interfaces.Newable<TreeServices[K]>; }; export interface TreeContainerProps extends TreeServiceProviders { props: Partial<TreeProps>; searchBoxFactory: SearchBoxFactoryFactory; } export {}; //# sourceMappingURL=tree-container.d.ts.map