Installation
npm install --save @types/nexpect
Summary
This package contains type definitions for nexpect (https://github.com/nodejitsu/nexpect).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/nexpect.
index.d.ts
/// <reference types="node" />
import child_process = require("child_process");
declare function spawn(command: string[], options?: ISpawnOptions): IChain;
declare function spawn(command: string, params?: any[], options?: ISpawnOptions): IChain;
declare function spawn(command: string, options?: ISpawnOptions): IChain;
interface IChain {
expect(expectation: string): IChain;
expect(expectation: RegExp): IChain;
wait(expectation: string): IChain;
wait(expectation: RegExp): IChain;
sendline(line: string): IChain;
sendEof(): IChain;
run(callback: (err: Error, output: string[], exit: string | number) => void): child_process.ChildProcess;
}
interface ISpawnOptions {
cwd?: string | undefined;
env?: any;
ignoreCase?: any;
stripColors?: any;
stream?: any;
verbose?: any;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/node
Credits
These definitions were written by vvakame.