3.0.5 • Published 6 months ago
@types/promptly v3.0.5
Installation
npm install --save @types/promptly
Summary
This package contains type definitions for node-promptly (https://github.com/IndigoUnited/node-promptly).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/promptly.
index.d.ts
// Type definitions for node-promptly 3.0.3
// Project: https://github.com/IndigoUnited/node-promptly
// Definitions by: Dan Spencer <https://github.com/danrspencer>
// Alex Ilyaev <https://github.com/alexilyaev>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference types="node"/>
import stream = require('stream');
interface Callback {
(err: Error, value: string): void;
}
export interface Options {
default?: string | undefined;
trim?: boolean | undefined;
validator?: any;
retry?: boolean | undefined;
silent?: boolean | undefined;
replace?: string | undefined;
input?: NodeJS.ReadableStream | undefined;
output?: NodeJS.WritableStream | undefined;
}
export declare function prompt(message: string, fn?: Callback): Promise<string>;
export declare function prompt(message: string, opts: Options, fn?: Callback): Promise<string>;
export declare function password(message: string, fn?: Callback): Promise<string>;
export declare function password(message: string, opts: Options, fn?: Callback): Promise<string>;
export declare function confirm(message: string, fn?: Callback): Promise<boolean>;
export declare function confirm(message: string, opts: Options, fn?: Callback): Promise<boolean>;
export declare function choose(message: string, choices: string[], fn?: Callback): Promise<string>;
export declare function choose(message: string, choices: string[], opts: Options, fn?: Callback): Promise<string>;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:19:55 GMT
- Dependencies: @types/node
- Global values: none
Credits
These definitions were written by Dan Spencer, and Alex Ilyaev.
3.0.4
6 months ago
3.0.3
7 months ago
3.0.5
6 months ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
5 years ago
1.1.28
8 years ago
1.1.27
8 years ago
1.1.26-alpha
8 years ago
1.1.25-alpha
8 years ago
1.1.24-alpha
8 years ago
1.1.23-alpha
8 years ago
1.1.22-alpha
8 years ago
1.1.21-alpha
8 years ago
1.1.20-alpha
8 years ago
1.1.15-alpha
8 years ago
1.1.14-alpha
8 years ago