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 1.2.0 to 2.0.0

16

prompts/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for prompts 1.2
// Type definitions for prompts 2.0
// Project: https://github.com/terkelg/prompts

@@ -6,4 +6,5 @@ // Definitions by: Berkay GURSOY <https://github.com/Berkays>

// Kamontat Chantrachirathumrong <https://github.com/kamontat>
// theweirdone <https://github.com/theweirdone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
// TypeScript Version: 2.9

@@ -32,2 +33,4 @@ export = prompts;

function date(args: PromptObject): any;
function invisible(args: PromptObject): any;

@@ -62,9 +65,9 @@

interface PromptObject<T extends string = string> {
type: ValueOrFunc<PromptType> | Falsy;
type: PromptType | Falsy | PrevCaller<T, PromptType | Falsy>;
name: ValueOrFunc<T>;
message?: ValueOrFunc<string>;
initial?: string | number | boolean;
initial?: string | number | boolean | Date;
style?: string;
format?: PrevCaller<T, void>;
validate?: PrevCaller<T, void>;
validate?: PrevCaller<T, boolean | string>;
onState?: PrevCaller<T, void>;

@@ -83,2 +86,3 @@ min?: number;

limit?: number;
mask?: string;
}

@@ -96,5 +100,5 @@

type PromptType = "text" | "password" | "invisible" | "number" | "confirm" | "list" | "toggle" | "select" | "multiselect" | "autocomplete";
type PromptType = "text" | "password" | "invisible" | "number" | "confirm" | "list" | "toggle" | "select" | "multiselect" | "autocomplete" | "date";
type ValueOrFunc<T extends string> = T | PrevCaller<T>;
}
{
"name": "@types/prompts",
"version": "1.2.0",
"version": "2.0.0",
"description": "TypeScript definitions for prompts",

@@ -21,2 +21,7 @@ "license": "MIT",

"githubUsername": "kamontat"
},
{
"name": "theweirdone",
"url": "https://github.com/theweirdone",
"githubUsername": "theweirdone"
}

@@ -28,8 +33,9 @@ ],

"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/prompts"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "99ff037d10266f8bbc273f9d239bb6c5fb81f2faeb4b50f61f93d868b1160858",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "afc8ccbe607b57cc4d1f9d16aa3c69bd0bc5f96a50abb532b8c6a0b88779f2bd",
"typeScriptVersion": "2.9"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for prompts (https://github.com/terkelg/prompts).
This package contains type definitions for prompts ( https://github.com/terkelg/prompts ).

@@ -12,3 +12,3 @@ # Details

Additional Details
* Last updated: Sat, 15 Dec 2018 00:54:45 GMT
* Last updated: Mon, 20 May 2019 17:51:41 GMT
* Dependencies: none

@@ -18,2 +18,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>.
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>.
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