Created
September 2, 2016 09:09
-
-
Save Codesleuth/d87e980c0f1cfae7ab2aa25c052f8956 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'os-service' { | |
import { Writable } from 'stream'; | |
interface ServiceOptions { | |
nodePath?: string; | |
username?: string; | |
password?: string; | |
programPath?: string; | |
displayName?: string; | |
nodeArgs?: string[]; | |
programArgs?: string[]; | |
runLevels?: number[]; | |
} | |
function add(name: string, options: ServiceOptions, cb: (err?: Error) => void): any; | |
function remove(name: string, cb: (err?: Error) => void): any; | |
function run(stdoutLogStream: Writable, stderrLogStream: Writable, stopCallback: Function): void; | |
function run(stderrLogStream: Writable, stopCallback: Function): void; | |
function stop(rcode: number): void; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment