Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

fix: change facade type #648

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/core/launcher/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class Launcher extends Observable implements DefaultLauncher {
* @param component - component to add
* @returns {void}
*/
public addComponent = (component: any): void => {
public addComponent = (component: Partial<BaseComponent>): void => {
if (!this.canAddComponent(component)) return;

if (!this.realtime.isJoinedRoom) {
Expand Down Expand Up @@ -133,7 +133,7 @@ export class Launcher extends Observable implements DefaultLauncher {
* @param component - component to remove
* @returns {void}
*/
public removeComponent = (component: any): void => {
public removeComponent = (component: Partial<BaseComponent>): void => {
if (!this.activeComponents.includes(component.name)) {
const message = `Component ${component.name} is not initialized yet.`;
this.logger.log(message);
Expand Down
4 changes: 2 additions & 2 deletions src/core/launcher/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ export interface LauncherFacade {
subscribe: typeof Observable.prototype.subscribe;
unsubscribe: typeof Observable.prototype.unsubscribe;
destroy: () => void;
addComponent: (component: Partial<BaseComponent>) => void;
removeComponent: (component: Partial<BaseComponent>) => void;
addComponent: (component: any) => void;
removeComponent: (component: any) => void;
}
Loading