add public api

This commit is contained in:
tisilent
2023-10-18 00:29:56 +08:00
parent 4245283e05
commit 7dab4601d2
19 changed files with 56 additions and 17 deletions
@@ -6,13 +6,14 @@
import { Terminal } from 'xterm';
import { enableLigatures } from '.';
import { ILigatureOptions } from './Types';
import { LigaturesAddon as ILigaturesApi } from 'xterm-addon-ligatures';
export interface ITerminalAddon {
activate(terminal: Terminal): void;
dispose(): void;
}
export class LigaturesAddon implements ITerminalAddon {
export class LigaturesAddon implements ITerminalAddon , ILigaturesApi {
private readonly _fallbackLigatures: string[];
private _terminal: Terminal | undefined;
@@ -10,7 +10,10 @@
"preserveWatchOutput": true,
"types": [
"../../../node_modules/@types/mocha"
]
],
"paths": {
"xterm-addon-ligatures" : [ "../typings/xterm-addon-ligatures.d.ts" ]
}
},
"include": [
"./**/*",