@inquirer/core
Advanced tools
Comparing version 0.0.21-alpha.0 to 0.0.22-alpha.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18253
18
446