@types/nexpect
TypeScript icon, indicating that this package has built-in type declarations

0.4.34 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/nexpect

Weekly Downloads

1,237

Version

0.4.34

License

MIT

Unpacked Size

4.25 kB

Total Files

5

Last publish

Collaborators

  • types