0.4.34 • Published 6 months ago

@types/nexpect v0.4.34

Weekly downloads
155
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for nexpect 0.4.2
// Project: https://github.com/nodejitsu/nexpect
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <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: Thu, 08 Jul 2021 18:51:14 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by vvakame.

0.4.32

8 months ago

0.4.33

7 months ago

0.4.34

6 months ago

0.4.31

3 years ago

0.4.30

7 years ago

0.4.29

8 years ago

0.4.28

8 years ago

0.4.27-alpha

8 years ago

0.4.26-alpha

8 years ago

0.4.25-alpha

8 years ago

0.4.24-alpha

8 years ago

0.4.23-alpha

8 years ago

0.4.22-alpha

8 years ago

0.4.21-alpha

8 years ago

0.4.16-alpha

8 years ago

0.4.15-alpha

8 years ago