Skip to content

Commit

Permalink
Fixed codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwilbrink committed Jun 11, 2024
1 parent 2fe4c39 commit d5e4d71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/foundation/deprecated/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export function newSettingsUIEvent(
});
}


declare global {
interface ElementEventMap {
['oscd-settings']: SettingsUIEvent;
['load-nsdoc']: LoadNsdocEvent;
}
}
2 changes: 1 addition & 1 deletion packages/openscd/src/addons/Settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export class OscdSettings extends LitElement {
this.host!.addEventListener('oscd-settings', (evt: SettingsUIEvent) => {
evt.detail.show ? this.settingsUI.show() : this.settingsUI.close();
});
(<any>this.host).addEventListener('load-nsdoc', (evt: LoadNsdocEvent) =>
this.host.addEventListener('load-nsdoc', (evt: LoadNsdocEvent) =>
this.onLoadNsdoc(evt)
);
}
Expand Down

0 comments on commit d5e4d71

Please sign in to comment.