File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed
Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 1- import { dnode } from 'dnode' ;
1+ import * as dnode from 'dnode' ;
22import * as net from 'net' ;
33import * as path from 'path' ;
44import * as os from 'os' ;
Original file line number Diff line number Diff line change 1212// - stdin, stdout and stderr from the remote shell() are connected to the same
1313// in the shell.ts node process.
1414
15- import { dnode } from 'dnode' ;
15+ import * as dnode from 'dnode' ;
1616import * as ssh2 from 'ssh2' ;
1717
1818export interface Shell {
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
3+ "baseUrl" : " ." ,
4+ "paths" : { "*" : [" types/*" ] },
35 "module" : " commonjs" ,
46 "target" : " es6" ,
57 "outDir" : " out" ,
Original file line number Diff line number Diff line change 22// Project: https://github.com/substack/dnode
33// Definitions by: David Lechner <[email protected] > 44
5- declare module 'dnode' {
6- import * as net from 'net' ;
5+ /// <reference types="node" />
76
8- export type ConsFunc < T > = ( ) => T ;
7+ declare function dnode < T > ( cons : dnode . ConsFunc < T > | T , opt ?: { } ) : dnode . DNode ;
8+ export = dnode ;
9+ declare namespace dnode {
910
10- export function dnode < T > ( cons : ConsFunc < T > | T , opt ?: { } ) : DNode ;
11+ type ConsFunc < T > = ( ) => T ;
1112
12- export interface DNode extends NodeJS . WritableStream {
13+ interface DNode extends NodeJS . WritableStream {
1314 connect ( port : number ) : D ;
14- pipe ( socket : net . Socket ) : void ;
15+ pipe ( socket : NodeJS . Socket ) : void ;
1516 destroy ( ) : void ;
1617 }
1718
18- export class D {
19+ class D {
1920 on < T > ( event : 'remote' , listener : ( remote : T ) => void ) : void ;
2021 end ( ) : void ;
2122 }
You can’t perform that action at this time.
0 commit comments