@types/prompts
Advanced tools
Comparing version 2.4.4 to 2.4.5
@@ -17,8 +17,8 @@ // Type definitions for prompts 2.4 | ||
import { Readable, Writable } from 'stream'; | ||
import { Kleur } from 'kleur'; | ||
import { Kleur } from "kleur"; | ||
import { Readable, Writable } from "stream"; | ||
declare function prompts<T extends string = string>( | ||
questions: prompts.PromptObject<T> | Array<prompts.PromptObject<T>>, | ||
options?: prompts.Options | ||
options?: prompts.Options, | ||
): Promise<prompts.Answers<T>>; | ||
@@ -114,3 +114,3 @@ | ||
values: Answers<T>, | ||
prompt: PromptObject | ||
prompt: PromptObject, | ||
) => R; | ||
@@ -120,3 +120,15 @@ | ||
type PromptType = "text" | "password" | "invisible" | "number" | "confirm" | "list" | "toggle" | "select" | "multiselect" | "autocomplete" | "date" | "autocompleteMultiselect"; | ||
type PromptType = | ||
| "text" | ||
| "password" | ||
| "invisible" | ||
| "number" | ||
| "confirm" | ||
| "list" | ||
| "toggle" | ||
| "select" | ||
| "multiselect" | ||
| "autocomplete" | ||
| "date" | ||
| "autocompleteMultiselect"; | ||
@@ -123,0 +135,0 @@ type ValueOrFunc<T extends string> = T | PrevCaller<T>; |
{ | ||
"name": "@types/prompts", | ||
"version": "2.4.4", | ||
"version": "2.4.5", | ||
"description": "TypeScript definitions for prompts", | ||
@@ -56,4 +56,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prompts", | ||
}, | ||
"typesPublisherContentHash": "cd9635cab4679541a315cf5f5fbeecdc9722a3395db3b143d8c6fefde46b1180", | ||
"typeScriptVersion": "4.3" | ||
"typesPublisherContentHash": "e4bd06d4b433b24e2cdaac498be21599c89f93282e2266a22007633f094c7d76", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 30 Mar 2023 17:33:51 GMT | ||
* Last updated: Sun, 24 Sep 2023 06:37:28 GMT | ||
* Dependencies: [@types/kleur](https://npmjs.com/package/@types/kleur), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
8646
106