Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jerch committed Jan 10, 2025
1 parent 0eaf97a commit 5bf8153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/shared/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export { Emitter } from 'vs/base/common/event';
export class DisposableAddon implements IDisposable {
protected readonly _store: IDisposableStore;

constructor(storeCtor: DisposableStoreCtorType) {
this._store = new storeCtor();
constructor(protected readonly _storeCtor: DisposableStoreCtorType) {
this._store = new _storeCtor();
}

public dispose(): void {
Expand All @@ -32,10 +32,10 @@ export class DisposableEmitterAddon implements IDisposable {
protected readonly _store: IDisposableStore;

constructor(
protected readonly storeCtor: DisposableStoreCtorType,
protected readonly _storeCtor: DisposableStoreCtorType,
protected readonly _emitterCtor: EmitterCtorType
) {
this._store = new storeCtor();
this._store = new _storeCtor();
}

public dispose(): void {
Expand Down
4 changes: 2 additions & 2 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,7 @@ declare module '@xterm/xterm' {

export class DisposableAddon implements IDisposable {
protected readonly _store: IDisposableStore;
constructor(storeCtor: DisposableStoreCtorType);
constructor(_storeCtor: DisposableStoreCtorType);
public dispose(): void;
}
export class EmitterAddon {
Expand All @@ -2020,7 +2020,7 @@ declare module '@xterm/xterm' {
export class DisposableEmitterAddon implements IDisposable {
protected readonly _store: IDisposableStore;
protected readonly _emitterCtor: EmitterCtorType;
constructor(storeCtor: DisposableStoreCtorType, _emitterCtor: EmitterCtorType);
constructor(_storeCtor: DisposableStoreCtorType, _emitterCtor: EmitterCtorType);
public dispose(): void;
}
}

0 comments on commit 5bf8153

Please sign in to comment.