Skip to content

Commit 05a2bfb

Browse files
committed
cleanup
1 parent 543fefa commit 05a2bfb

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

addons/addon-progress/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = {
2727
alias: {
2828
common: path.resolve('../../out/common'),
2929
browser: path.resolve('../../out/browser'),
30-
vs: path.resolve('../../out/vs'),
30+
vs: path.resolve('../../out/vs')
3131
}
3232
},
3333
output: {

demo/client.ts

-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ function createTerminal(): void {
281281
addons.serialize.instance = new SerializeAddon();
282282
addons.fit.instance = new FitAddon();
283283
addons.image.instance = new ImageAddon();
284-
//addons.progress.instance = new ProgressAddon(Terminal as unknown as IXtermSharedImports);
285284
addons.progress.instance = new ProgressAddon(sharedExports);
286285
addons.unicodeGraphemes.instance = new UnicodeGraphemesAddon();
287286
addons.clipboard.instance = new ClipboardAddon();

typings/xterm-headless.d.ts

+22-22
Original file line numberDiff line numberDiff line change
@@ -1363,26 +1363,26 @@ declare module '@xterm/headless' {
13631363
* EXPERIMENTAL:
13641364
* Module exposure of certain building blocks to be used at runtime in addons.
13651365
*/
1366-
export interface ISharedExports {
1367-
readonly DisposableStore: new() => IDisposableStore;
1368-
readonly Emitter: new<T>() => IEmitter<T>;
1369-
readonly toDisposable: (fn: () => void) => IDisposable;
1370-
}
1371-
1372-
export const sharedExports: ISharedExports;
1373-
1374-
// FIXME: @Tyriar - plz have a look at the following interfaces and
1375-
// to what degree those should be exposed or get stripped down
1376-
export interface IEmitter<T> extends IDisposable {
1377-
event: IEvent<T>;
1378-
fire(event: T): void;
1379-
hasListeners(): boolean;
1380-
}
1381-
export interface IDisposableStore extends IDisposable {
1382-
isDisposed: boolean;
1383-
clear(): void;
1384-
add<T extends IDisposable>(o: T): T;
1385-
delete<T extends IDisposable>(o: T): void;
1386-
deleteAndLeak<T extends IDisposable>(o: T): void;
1387-
}
1366+
export interface ISharedExports {
1367+
readonly DisposableStore: new() => IDisposableStore;
1368+
readonly Emitter: new<T>() => IEmitter<T>;
1369+
readonly toDisposable: (fn: () => void) => IDisposable;
1370+
}
1371+
1372+
export const sharedExports: ISharedExports;
1373+
1374+
// FIXME: @Tyriar - plz have a look at the following interfaces and
1375+
// to what degree those should be exposed or get stripped down
1376+
export interface IEmitter<T> extends IDisposable {
1377+
event: IEvent<T>;
1378+
fire(event: T): void;
1379+
hasListeners(): boolean;
1380+
}
1381+
export interface IDisposableStore extends IDisposable {
1382+
isDisposed: boolean;
1383+
clear(): void;
1384+
add<T extends IDisposable>(o: T): T;
1385+
delete<T extends IDisposable>(o: T): void;
1386+
deleteAndLeak<T extends IDisposable>(o: T): void;
1387+
}
13881388
}

0 commit comments

Comments
 (0)