@types/prompts
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -7,2 +7,3 @@ // Type definitions for prompts 2.0 | ||
// theweirdone <https://github.com/theweirdone> | ||
// whoaa512 <https://github.com/whoaa512> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -22,3 +23,3 @@ // TypeScript Version: 2.9 | ||
function inject(obj: any): void; | ||
function inject(arr: ReadonlyArray<any>): void; | ||
@@ -29,2 +30,8 @@ namespace inject { | ||
function override(obj: { [key: string]: any }): void; | ||
namespace override { | ||
const prototype: {}; | ||
} | ||
namespace prompts { | ||
@@ -72,3 +79,3 @@ function autocomplete(args: PromptObject): any; | ||
format?: PrevCaller<T, void>; | ||
validate?: PrevCaller<T, boolean | string>; | ||
validate?: PrevCaller<T, boolean | string | Promise<boolean | string>>; | ||
onState?: PrevCaller<T, void>; | ||
@@ -85,3 +92,3 @@ min?: number; | ||
hint?: string; | ||
suggest?: ((prev: any, values: any, prompt: PromptObject) => void); | ||
suggest?: ((input: any, choices: Choice[]) => Promise<any>); | ||
limit?: number; | ||
@@ -88,0 +95,0 @@ mask?: string; |
{ | ||
"name": "@types/prompts", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "TypeScript definitions for prompts", | ||
@@ -26,2 +26,7 @@ "license": "MIT", | ||
"githubUsername": "theweirdone" | ||
}, | ||
{ | ||
"name": "whoaa512", | ||
"url": "https://github.com/whoaa512", | ||
"githubUsername": "whoaa512" | ||
} | ||
@@ -38,4 +43,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "e537ffadd2846d49a3a60f46340301e087b42a32260b3ea73f0ec54315349b7d", | ||
"typesPublisherContentHash": "22f0b4aa3bec0926aff6e634769014df21a762cd58304d70105270210387b861", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 25 Oct 2019 20:27:33 GMT | ||
* Last updated: Wed, 06 Nov 2019 01:07:56 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Berkay GURSOY <https://github.com/Berkays>, Daniel Perez Alvarez <https://github.com/danielpa9708>, Kamontat Chantrachirathumrong <https://github.com/kamontat>, and theweirdone <https://github.com/theweirdone>. | ||
These definitions were written by Berkay GURSOY <https://github.com/Berkays>, Daniel Perez Alvarez <https://github.com/danielpa9708>, Kamontat Chantrachirathumrong <https://github.com/kamontat>, theweirdone <https://github.com/theweirdone>, and whoaa512 <https://github.com/whoaa512>. |
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
6399
80