Socket
Socket
Sign inDemoInstall

@types/prompts

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/prompts - npm Package Compare versions

Comparing version 2.0.13 to 2.0.14

56

prompts/index.d.ts

@@ -67,10 +67,10 @@ // Type definitions for prompts 2.0

value?: any;
disabled?: boolean;
selected?: boolean;
description?: string;
disabled?: boolean | undefined;
selected?: boolean | undefined;
description?: string | undefined;
}
interface Options {
onSubmit?: (prompt: PromptObject, answer: any, answers: any[]) => void;
onCancel?: (prompt: PromptObject, answers: any) => void;
onSubmit?: ((prompt: PromptObject, answer: any, answers: any[]) => void) | undefined;
onCancel?: ((prompt: PromptObject, answers: any) => void) | undefined;
}

@@ -81,25 +81,25 @@

name: ValueOrFunc<T>;
message?: ValueOrFunc<string>;
initial?: InitialReturnValue | PrevCaller<T, InitialReturnValue | Promise<InitialReturnValue>>;
style?: string | PrevCaller<T, string | Falsy>;
format?: PrevCaller<T, void>;
validate?: PrevCaller<T, boolean | string | Promise<boolean | string>>;
onState?: PrevCaller<T, void>;
min?: number | PrevCaller<T, number | Falsy>;
max?: number | PrevCaller<T, number | Falsy>;
float?: boolean | PrevCaller<T, boolean | Falsy>;
round?: number | PrevCaller<T, number | Falsy>;
instructions?: string | boolean;
increment?: number | PrevCaller<T, number | Falsy>;
separator?: string | PrevCaller<T, string | Falsy>;
active?: string | PrevCaller<T, string | Falsy>;
inactive?: string | PrevCaller<T, string | Falsy>;
choices?: Choice[] | PrevCaller<T, Choice[] | Falsy>;
hint?: string | PrevCaller<T, string | Falsy>;
warn?: string | PrevCaller<T, string | Falsy>;
suggest?: ((input: any, choices: Choice[]) => Promise<any>);
limit?: number | PrevCaller<T, number | Falsy>;
mask?: string | PrevCaller<T, string | Falsy>;
stdout?: Writable;
stdin?: Readable;
message?: ValueOrFunc<string> | undefined;
initial?: InitialReturnValue | PrevCaller<T, InitialReturnValue | Promise<InitialReturnValue>> | undefined;
style?: string | PrevCaller<T, string | Falsy> | undefined;
format?: PrevCaller<T, void> | undefined;
validate?: PrevCaller<T, boolean | string | Promise<boolean | string>> | undefined;
onState?: PrevCaller<T, void> | undefined;
min?: number | PrevCaller<T, number | Falsy> | undefined;
max?: number | PrevCaller<T, number | Falsy> | undefined;
float?: boolean | PrevCaller<T, boolean | Falsy> | undefined;
round?: number | PrevCaller<T, number | Falsy> | undefined;
instructions?: string | boolean | undefined;
increment?: number | PrevCaller<T, number | Falsy> | undefined;
separator?: string | PrevCaller<T, string | Falsy> | undefined;
active?: string | PrevCaller<T, string | Falsy> | undefined;
inactive?: string | PrevCaller<T, string | Falsy> | undefined;
choices?: Choice[] | PrevCaller<T, Choice[] | Falsy> | undefined;
hint?: string | PrevCaller<T, string | Falsy> | undefined;
warn?: string | PrevCaller<T, string | Falsy> | undefined;
suggest?: ((input: any, choices: Choice[]) => Promise<any>) | undefined;
limit?: number | PrevCaller<T, number | Falsy> | undefined;
mask?: string | PrevCaller<T, string | Falsy> | undefined;
stdout?: Writable | undefined;
stdin?: Readable | undefined;
}

@@ -106,0 +106,0 @@

{
"name": "@types/prompts",
"version": "2.0.13",
"version": "2.0.14",
"description": "TypeScript definitions for prompts",

@@ -50,4 +50,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prompts",

},
"typesPublisherContentHash": "26dde624eea88e33f7e12f2568d8a77169996225384cccf43f98529230ff3f99",
"typesPublisherContentHash": "43752b16170ded01c814466d6cabef320d5570afbf7ba5d6878314b3d9281601",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 09 Jun 2021 07:01:24 GMT
* Last updated: Wed, 07 Jul 2021 17:02:37 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)

@@ -14,0 +14,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc