rename types, remove rc import in d.ts

This commit is contained in:
Jörg Breitbart
2025-01-09 02:05:36 +01:00
parent 96a3be3ca8
commit 8101132352
4 changed files with 22 additions and 22 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ npm install --save @xterm/addon-progress
```ts
import { Terminal } from '@xterm/xterm';
import { ProgressAddon } from '@xterm/addon-progress';
import { ProgressAddon, IProgressState } from '@xterm/addon-progress';
const terminal = new Terminal();
const progressAddon = new ProgressAddon();
terminal.loadAddon(progressAddon);
progressAddon.onChange({state, value}: IProgress) => {
progressAddon.onChange({state, value}: IProgressState) => {
// state: 0-4 integer (see below for meaning)
// value: 0-100 integer (percent value)