Socket
Socket
Sign inDemoInstall

@inquirer/core

Package Overview
Dependencies
10
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.21-alpha.0 to 0.0.22-alpha.0

4

dist/index.d.ts

@@ -28,8 +28,8 @@ /// <reference types="node" resolution-mode="require"/>

message: string | Promise<string> | (() => Promise<string>);
validate?: () => boolean;
validate?: (value: string) => boolean | string | Promise<string | boolean>;
};
export declare type ResolvedPromptConfig = {
message: string;
validate: () => boolean;
validate: (value: string) => boolean | string | Promise<string | boolean>;
};
export declare function createPrompt<Value, Config extends AsyncPromptConfig>(view: (config: Config & ResolvedPromptConfig, done: (value: Value) => void) => string | [string, string | undefined]): (options: Config, stdio?: StdioOptions) => Promise<Value>;
{
"name": "@inquirer/core",
"type": "module",
"version": "0.0.21-alpha.0",
"version": "0.0.22-alpha.0",
"description": "Core Inquirer prompt API",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"dist/"
],
"repository": "SBoudrias/Inquirer.js",

@@ -35,3 +38,3 @@ "keywords": [

},
"gitHead": "cd0d1465327c0e98a89c937a80b7c473b6d00f74"
"gitHead": "1d5e7e3d15c86851f2e5df2bb9f55084ba231c54"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc