1
- /// <reference path="index.ref.d.ts" />
2
- declare module 'java_process/java_process' {
3
- /// <reference path="../../typings/main/ambient/node/node.d.ts" />
4
- import * as child_process from "child_process" ;
5
- export interface JavaInfo {
6
- location : string ;
7
- version : string ;
8
- }
9
- export interface ChildProcessExtended extends child_process . ChildProcess {
10
- connected : boolean ;
11
- }
12
- export interface JavaProcessStatus {
13
- lastErrorFromStdErr : string ;
14
- childUnaskedExit : boolean ;
15
- exitSignal : string ;
16
- errorsFromStdErr : number ;
17
- procErrorOcurred : boolean ;
18
- lastProcError : string ;
19
- msgSent : number ;
20
- normalExit : boolean ;
21
- exitCode : number ;
22
- }
23
- export class JavaProcess {
24
- private jarPath ;
25
- private args ;
26
- private readyFn ;
27
- DEFAULT_ENCODING : string ;
28
- static DEFAULT_INIT_TIMEOUT : number ;
29
- private javaInfo ;
30
- private process ;
31
- private firstMessageReceived ;
32
- private started ;
33
- private procErrorOcurred ;
34
- private lastProcError ;
35
- private closed ;
36
- private closeData ;
37
- private ready ;
38
- private errorsFromStdErr ;
39
- private msgSent ;
40
- private lastErrorFromStdErr ;
41
- private childUnaskedExit ;
42
- private exitSignal ;
43
- private normalExit ;
44
- private exited ;
45
- private exitCode ;
46
- private pipesOutput ;
47
- private pipesErr ;
48
- private customDisconnect ;
49
- private debugOn ;
50
- private readyCheckString ;
51
- private initTimeout ;
52
- private userNotReadyCallback ;
53
- status ( ) : JavaProcessStatus ;
54
- constructor ( jarPath : string , args : string [ ] , readyFn ?: Function ) ;
55
- private initTimeoutFn ( ) ;
56
- start ( readyCheck ?: string , fnNotReady ?: Function ) : void ;
57
- setInitTimeout ( timeout : number ) : void ;
58
- onReady ( javaProcess : JavaProcess ) : void ;
59
- isReady ( ) : boolean ;
60
- wasStarted ( ) : boolean ;
61
- setCustomDisconnect ( disconnectFn : Function ) : void ;
62
- setDebug ( debug : boolean ) : void ;
63
- kill ( signal ?: string ) : void ;
64
- disconnect ( ) : void ;
65
- onDataOnStdErr ( data : any ) : void ;
66
- onDataOnStdOut ( data : any ) : void ;
67
- private compareWithoutNewLinesAndLowerCase ( value1 , value2 ) ;
68
- onError ( data : any ) : void ;
69
- onClose ( code : number , signal : string ) : void ;
70
- onDisconnect ( ) : void ;
71
- onExit ( code ?: number , signal ?: string ) : void ;
72
- private buildPassThrough ( streamTarget , callback ) ;
73
- on ( event : string , callback : Function ) : void ;
74
- writeDataToProcess ( data : string ) : void ;
75
- spawn ( ) : void ;
76
- private debug ( message , ...optionalParams ) ;
77
- }
78
- export function checkJava ( ) : JavaInfo ;
79
- export function spawn ( jarPath : string , args ?: string [ ] ) : child_process . ChildProcess ;
80
- export default function config ( jarPath : string , args : string [ ] , readyFn : Function ) : JavaProcess ;
81
-
1
+ // Compiled using typings@0.6.6
2
+ // Source: dist/java_process/java_process.d.ts
3
+ declare module 'java_process/dist/java_process/java_process' {
4
+ import * as child_process from 'child_process' ;
5
+ export interface JavaInfo {
6
+ location : string ;
7
+ version : string ;
8
+ }
9
+ export interface ChildProcessExtended extends child_process . ChildProcess {
10
+ connected : boolean ;
11
+ }
12
+ export interface JavaProcessStatus {
13
+ lastErrorFromStdErr : string ;
14
+ childUnaskedExit : boolean ;
15
+ exitSignal : string ;
16
+ errorsFromStdErr : number ;
17
+ procErrorOcurred : boolean ;
18
+ lastProcError : string ;
19
+ msgSent : number ;
20
+ normalExit : boolean ;
21
+ exitCode : number ;
22
+ }
23
+ export class JavaProcess {
24
+ private jarPath ;
25
+ private args ;
26
+ private readyFn ;
27
+ DEFAULT_ENCODING : string ;
28
+ static DEFAULT_INIT_TIMEOUT : number ;
29
+ private javaInfo ;
30
+ private process ;
31
+ private firstMessageReceived ;
32
+ private started ;
33
+ private procErrorOcurred ;
34
+ private lastProcError ;
35
+ private closed ;
36
+ private closeData ;
37
+ private ready ;
38
+ private errorsFromStdErr ;
39
+ private msgSent ;
40
+ private lastErrorFromStdErr ;
41
+ private childUnaskedExit ;
42
+ private exitSignal ;
43
+ private normalExit ;
44
+ private exited ;
45
+ private exitCode ;
46
+ private pipesOutput ;
47
+ private pipesErr ;
48
+ private customDisconnect ;
49
+ private debugOn ;
50
+ private readyCheckString ;
51
+ private initTimeout ;
52
+ private userNotReadyCallback ;
53
+ status ( ) : JavaProcessStatus ;
54
+ constructor ( jarPath : string , args : string [ ] , readyFn ?: Function ) ;
55
+ private initTimeoutFn ( ) ;
56
+ start ( readyCheck ?: string , fnNotReady ?: Function ) : void ;
57
+ setInitTimeout ( timeout : number ) : void ;
58
+ onReady ( javaProcess : JavaProcess ) : void ;
59
+ isReady ( ) : boolean ;
60
+ wasStarted ( ) : boolean ;
61
+ setCustomDisconnect ( disconnectFn : Function ) : void ;
62
+ setDebug ( debug : boolean ) : void ;
63
+ kill ( signal ?: string ) : void ;
64
+ disconnect ( ) : void ;
65
+ onDataOnStdErr ( data : any ) : void ;
66
+ onDataOnStdOut ( data : any ) : void ;
67
+ private compareWithoutNewLinesAndLowerCase ( value1 , value2 ) ;
68
+ onError ( data : any ) : void ;
69
+ onClose ( code : number , signal : string ) : void ;
70
+ onDisconnect ( ) : void ;
71
+ onExit ( code ?: number , signal ?: string ) : void ;
72
+ private buildPassThrough ( streamTarget , callback ) ;
73
+ on ( event : string , callback : Function ) : void ;
74
+ writeDataToProcess ( data : string ) : void ;
75
+ spawn ( ) : void ;
76
+ private debug ( message , ...optionalParams ) ;
77
+ }
78
+ export function checkJava ( ) : JavaInfo ;
79
+ export function spawn ( jarPath : string , args ?: string [ ] ) : child_process . ChildProcess ;
80
+ export default function config ( jarPath : string , args : string [ ] , readyFn : Function ) : JavaProcess ;
82
81
}
83
- declare module 'java_process' {
84
- export { default as java_process } from 'java_process/java_process' ;
85
82
83
+ // Compiled using typings@0.6.6
84
+ // Source: dist/java_process.d.ts
85
+ declare module 'java_process/dist/java_process' {
86
+ export { default as java_process } from 'java_process/dist/java_process/java_process' ;
86
87
}
88
+ declare module 'java_process' {
89
+ export * from 'java_process/dist/java_process' ;
90
+ }
0 commit comments