Fix JSDoc type annotations after module conversion
Update @param {import('./app.js').App} references to plain {App}
since ES module imports are no longer used.
This commit is contained in:
@@ -8,7 +8,7 @@ const { createElement, escapeHtml, fuzzyMatch, $ } = window.NexusTerminal;
|
||||
|
||||
class CommandPalette {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
@@ -55,7 +55,7 @@ const DEFAULTS = {
|
||||
|
||||
class ProfileEditor {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
@@ -14,7 +14,7 @@ const MAX_BUFFER_ENTRIES = 5000;
|
||||
|
||||
class RawViewer {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
@@ -8,7 +8,7 @@ const { createElement, escapeHtml } = window.NexusTerminal;
|
||||
|
||||
class SecretPrompt {
|
||||
constructor(app) {
|
||||
/** @type {import('./app.js').App} */
|
||||
/** @type {App} */
|
||||
this.app = app;
|
||||
|
||||
/** @type {HTMLElement|null} Currently open overlay. */
|
||||
|
||||
@@ -17,7 +17,7 @@ const TABS = [
|
||||
|
||||
class Settings {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
@@ -11,7 +11,7 @@ const RECENT_LIMIT = 5;
|
||||
|
||||
class Sidebar {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
@@ -8,7 +8,7 @@ const { createElement, escapeHtml, protocolColour, stateLabel, dismissContextMen
|
||||
|
||||
class TabManager {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
class TerminalManager {
|
||||
/**
|
||||
* @param {import('./app.js').App} app
|
||||
* @param {App} app
|
||||
*/
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
|
||||
Reference in New Issue
Block a user