@inquirer/expand 5.1.2 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.d.ts +12 -1
  2. package/package.json +4 -4
package/dist/index.d.ts CHANGED
@@ -9,6 +9,17 @@ type Choice<Value> = {
9
9
  name: string;
10
10
  value: Value;
11
11
  };
12
+ type ExpandConfig<Value = string> = {
13
+ message: string;
14
+ choices: readonly (Separator | {
15
+ key: Key;
16
+ name: Value & string;
17
+ value?: never;
18
+ } | Choice<Value>)[];
19
+ default?: Key | 'h';
20
+ expanded?: boolean;
21
+ theme?: PartialDeep<Theme>;
22
+ };
12
23
  declare const expand: <const Value>(config: {
13
24
  message: string;
14
25
  choices: readonly (Separator | {
@@ -19,6 +30,6 @@ declare const expand: <const Value>(config: {
19
30
  default?: (Key | "h") | undefined;
20
31
  expanded?: boolean | undefined;
21
32
  theme?: PartialDeep<Theme> | undefined;
22
- }, context?: import("@inquirer/type").Context) => Promise<Value>;
33
+ } & ExpandConfig<Value>, context?: import("@inquirer/type").Context) => Promise<Value>;
23
34
  export default expand;
24
35
  export { Separator } from '@inquirer/core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inquirer/expand",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "description": "Inquirer checkbox prompt",
5
5
  "keywords": [
6
6
  "answer",
@@ -67,8 +67,8 @@
67
67
  "tsc": "tsc"
68
68
  },
69
69
  "dependencies": {
70
- "@inquirer/core": "^12.0.0",
71
- "@inquirer/type": "^4.0.7"
70
+ "@inquirer/core": "^12.0.1",
71
+ "@inquirer/type": "^4.1.0"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@repo/tsconfig": "0.0.0",
@@ -87,5 +87,5 @@
87
87
  },
88
88
  "main": "./dist/index.js",
89
89
  "types": "./dist/index.d.ts",
90
- "gitHead": "999706755afbdcae271f62decbd9bcd05560905b"
90
+ "gitHead": "51ac389603405e8f9f315ce49416153d95c5fefe"
91
91
  }