Fix problem with jarLaunch type declaration
This commit is contained in:
@@ -28,7 +28,7 @@ export interface JVM {
|
||||
/**
|
||||
* Launch an executable jar with this jvm.
|
||||
*/
|
||||
jarLaunch(jar: string, vmargs?: string[], execFileOptions?: ChildProcess.ExecFileOptions, pargs?: [string]) : ChildProcess.ChildProcess
|
||||
jarLaunch(jar: string, vmargs?: string[], execFileOptions?: ChildProcess.ExecFileOptions, pargs?: string[]) : ChildProcess.ChildProcess
|
||||
|
||||
mainClassLaunch(mainClass: string, classpath: string[], jvmArgs: string[], execFileOptions?: ChildProcess.ExecFileOptions): ChildProcess.ChildProcess
|
||||
}
|
||||
@@ -185,7 +185,7 @@ class JVMImpl implements JVM {
|
||||
const str = ChildProcess.execFileSync(javaExecutable, ['--list-modules'], {windowsHide: true, encoding: 'utf8'});
|
||||
return str.search(/^jdk.management@.*$/m) >= 0;
|
||||
}
|
||||
jarLaunch(jar: string, vmargs?: [string], execFileOptions?: ChildProcess.ExecFileOptions, pargs?: [string]): ChildProcess.ChildProcess {
|
||||
jarLaunch(jar: string, vmargs?: string[], execFileOptions?: ChildProcess.ExecFileOptions, pargs?: string[]): ChildProcess.ChildProcess {
|
||||
let args = [];
|
||||
if (vmargs) {
|
||||
args.push(...vmargs);
|
||||
|
||||
Reference in New Issue
Block a user