Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API
Browse files Browse the repository at this point in the history
fcollonval committed May 27, 2024

Verified

This commit was signed with the committer’s verified signature.
drashna Drashna Jaelre
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
@@ -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>;
@@ -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;
@@ -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;

0 comments on commit 5c89d1f

Please sign in to comment.