improve typings
This commit is contained in:
parent
1329513543
commit
57ddf4c45d
2
dist/smartipc.classes.threadsimple.d.ts
vendored
2
dist/smartipc.classes.threadsimple.d.ts
vendored
@ -3,5 +3,5 @@ export declare class ThreadSimple {
|
|||||||
workerPath: string;
|
workerPath: string;
|
||||||
threadChildProcess: childProcess.ChildProcess;
|
threadChildProcess: childProcess.ChildProcess;
|
||||||
constructor(filePathArg: string);
|
constructor(filePathArg: string);
|
||||||
run(): Promise<{}>;
|
run(): Promise<childProcess.ChildProcess>;
|
||||||
}
|
}
|
||||||
|
2
dist/smartipc.classes.threadsimple.js
vendored
2
dist/smartipc.classes.threadsimple.js
vendored
@ -24,4 +24,4 @@ class ThreadSimple {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.ThreadSimple = ThreadSimple;
|
exports.ThreadSimple = ThreadSimple;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpcGMuY2xhc3Nlcy50aHJlYWRzaW1wbGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGlwYy5jbGFzc2VzLnRocmVhZHNpbXBsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDhDQUE2QztBQUM3QyxpQ0FBZ0M7QUFDaEMsOENBQTZDO0FBRTdDLHVFQUEwRDtBQUUxRDtJQUdFLFlBQWEsV0FBbUI7UUFDOUIsSUFBSSxDQUFDLFVBQVUsR0FBRyxXQUFXLENBQUE7SUFDL0IsQ0FBQztJQUVELEdBQUc7UUFDRCxJQUFJLElBQUksR0FBRyxNQUFNLENBQUMsS0FBSyxFQUFFLENBQUE7UUFDekIsSUFBSSxRQUFRLEdBQUcsQ0FBQztZQUNkLEVBQUUsQ0FBQyxDQUFDLHdDQUFjLENBQUMsQ0FBQyxDQUFDO2dCQUNuQixNQUFNLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsd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BSSxDQUFDLFVBQVUsQ0FBQyxDQUFBO1lBQzNELENBQUM7WUFBQyxJQUFJLENBQUMsQ0FBQztnQkFDTixNQUFNLENBQUMsSUFBSSxDQUFDLFVBQVUsQ0FBQTtZQUN4QixDQUFDO1FBQ0gsQ0FBQyxDQUFDLEVBQUUsQ0FBQTtRQUNKLElBQUksQ0FBQyxrQkFBa0IsR0FBRyxZQUFZLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxDQUFBO1FBQ3JELElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFDLENBQUE7UUFDckMsTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUE7SUFDckIsQ0FBQztDQUNGO0FBcEJELG9DQW9CQyJ9
|
@ -12,7 +12,7 @@ export class ThreadSimple {
|
|||||||
}
|
}
|
||||||
|
|
||||||
run () {
|
run () {
|
||||||
let done = smartq.defer()
|
let done = smartq.defer<childProcess.ChildProcess>()
|
||||||
let forkPath = (() => {
|
let forkPath = (() => {
|
||||||
if (workerBasePath) {
|
if (workerBasePath) {
|
||||||
return plugins.path.join(workerBasePath, this.workerPath)
|
return plugins.path.join(workerBasePath, this.workerPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user