Skip to content

Commit

Permalink
railsware#800: fix typings for node-pty
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed May 22, 2017
1 parent dbfc4ac commit 0aa5b6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"lodash": "4.17.4",
"mode-to-permissions": "0.0.2",
"node-ansiparser": "2.2.0",
"node-pty": "0.6.5",
"node-pty": "0.6.6",
"react": "15.5.4",
"react-addons-test-utils": "15.5.1",
"react-dom": "15.5.4",
Expand Down
7 changes: 5 additions & 2 deletions src/PTY.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import * as pty from "node-pty";
import {loginShell} from "./utils/Shell";
import {debug} from "./utils/Common";

let smth = true ? null : pty.createTerminal(undefined, undefined, undefined);
type ITerminal = typeof smth;
interface ITerminal {
write(data: string): void;
resize(cols: number, rows: number): void;
kill(signal?: string): void;
}

export class PTY {
private terminal: ITerminal;
Expand Down

0 comments on commit 0aa5b6c

Please sign in to comment.