Skip to content

Instantly share code, notes, and snippets.

@p-kaczynski
Last active December 17, 2018 11:24
Show Gist options
  • Save p-kaczynski/7d73f3ff1a147ab951da61282d58a510 to your computer and use it in GitHub Desktop.
Save p-kaczynski/7d73f3ff1a147ab951da61282d58a510 to your computer and use it in GitHub Desktop.
pdc TypeScript definition
// Type definitions for pdc 0.2.3
// Definitions by: Paweł Kaczyński http://github.com/p-kaczynski
import { SpawnOptions, ChildProcess } from 'child_process'
declare function pdc(src: string, from: string, to: string, args: ReadonlyArray<string>, opts: SpawnOptions, cb: (...args: any[]) => void) : ChildProcess;
declare namespace pdc {
let path : string;
function stream(from: string, to: string, args?: ReadonlyArray<string>, opts?: SpawnOptions) : ChildProcess;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment