Skip to content

Commit

Permalink
Fix service type
Browse files Browse the repository at this point in the history
  • Loading branch information
afshin committed Aug 29, 2022
1 parent d6a592c commit 98d33bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/application/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface IPlugin<T extends Application, U> {
* This function will not be called unless all of its required
* services can be fulfilled.
*/
activate: (app: T, ...args: Token<any>[]) => U | Promise<U>;
activate: (app: T, ...args: any[]) => U | Promise<U>;

/**
* A function invoked to deactivate the plugin.
Expand All @@ -113,7 +113,7 @@ export interface IPlugin<T extends Application, U> {
*
* @param args - The services specified by the `requires` property.
*/
deactivate?: ((app: T, ...args: Token<any>[]) => void | Promise<void>) | null;
deactivate?: ((app: T, ...args: any[]) => void | Promise<void>) | null;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions review/api/application.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export namespace Application {

// @public
export interface IPlugin<T extends Application, U> {
activate: (app: T, ...args: Token<any>[]) => U | Promise<U>;
activate: (app: T, ...args: any[]) => U | Promise<U>;
autoStart?: boolean;
deactivate?: ((app: T, ...args: Token<any>[]) => void | Promise<void>) | null;
deactivate?: ((app: T, ...args: any[]) => void | Promise<void>) | null;
id: string;
optional?: Token<any>[];
provides?: Token<U> | null;
Expand Down

0 comments on commit 98d33bd

Please sign in to comment.