Skip to content

Commit

Permalink
Update API
Browse files Browse the repository at this point in the history
  • Loading branch information
fcollonval committed May 27, 2024
1 parent 81145ff commit 5c89d1f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions review/api/application.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Token } from '@lumino/coreutils';
import { Widget } from '@lumino/widgets';

// @public
export class Application<T extends Widget = Widget> {
export class Application<T extends Widget | HTMLElement = Widget> {
constructor(options: Application.IOptions<T>);
activateDeferredPlugins(): Promise<void>;
activatePlugin(id: string): Promise<void>;
Expand All @@ -34,8 +34,8 @@ export class Application<T extends Widget = Widget> {
isPluginActivated(id: string): boolean;
listPlugins(): string[];
protected pluginRegistry: PluginRegistry;
registerPlugin(plugin: IPlugin<this, any>): void;
registerPlugins(plugins: IPlugin<this, any>[]): void;
registerPlugin(plugin: IPlugin<Application<Widget | HTMLElement>, any>): void;
registerPlugins(plugins: IPlugin<Application<Widget | HTMLElement>, any>[]): void;
resolveOptionalService<U>(token: Token<U>): Promise<U | null>;
resolveRequiredService<U>(token: Token<U>): Promise<U>;
readonly shell: T;
Expand All @@ -45,7 +45,9 @@ export class Application<T extends Widget = Widget> {

// @public
export namespace Application {
export interface IOptions<T extends Widget> extends PluginRegistry.IOptions {
export interface IOptions<T extends Widget | HTMLElement> extends PluginRegistry.IOptions {
commands?: CommandRegistry;
contextMenuFactory?: (options: ContextMenu.IOptions) => ContextMenu;
contextMenuRenderer?: Menu.IRenderer;
pluginRegistry?: PluginRegistry;
shell: T;
Expand Down

0 comments on commit 5c89d1f

Please sign in to comment.