npm.io
0.4.34 • Published 2 years ago

@types/nexpect

Licence
MIT
Version
0.4.34
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

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 0939 GMT
  • Dependencies: @types/node

Credits

These definitions were written by vvakame.