@cjser/inquirer__type 4.0.7-cjser.2 → 4.1.0-cjser.2

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.
package/dist/utils.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  type Key = string | number | symbol;
2
- export type Prettify<T> = {
3
- [K in keyof T]: T[K];
4
- } & {};
2
+ /**
3
+ * Recursively expand intersections and mapped types for better IDE display,
4
+ * while preserving functions, arrays, primitives, and types with a string
5
+ * index signature (e.g. `Record<string, ...>`) as-is.
6
+ */
7
+ export type Prettify<T> = T extends (...args: never[]) => unknown ? T : T extends ReadonlyArray<unknown> ? T : T extends string | number | boolean | symbol | bigint | null | undefined ? T : T extends object ? string extends keyof T ? T : {
8
+ [K in keyof T]: Prettify<T[K]>;
9
+ } & {} : T;
5
10
  export type PartialDeep<T> = T extends object ? {
6
11
  [P in keyof T]?: PartialDeep<T[P]>;
7
12
  } : T;
@@ -12,6 +12,6 @@ var __copyProps = (to, from, except, desc) => {
12
12
  };
13
13
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
14
 
15
- // packages/@cjser/inquirer__type.tmp-25-1780163520055/dist/index.js
15
+ // packages/@cjser/inquirer__type.tmp-25-1788288260616/dist/index.js
16
16
  var index_exports = {};
17
17
  module.exports = __toCommonJS(index_exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cjser/inquirer__type",
3
- "version": "4.0.7-cjser.2",
3
+ "version": "4.1.0-cjser.2",
4
4
  "description": "Inquirer core TS types",
5
5
  "keywords": [
6
6
  "answer",
@@ -70,6 +70,7 @@
70
70
  "tsc": "tsc"
71
71
  },
72
72
  "devDependencies": {
73
+ "@repo/tsconfig": "0.0.0",
73
74
  "typescript": "^6.0.2"
74
75
  },
75
76
  "peerDependencies": {
@@ -85,13 +86,13 @@
85
86
  },
86
87
  "main": "./dist-cjser/index.cjs",
87
88
  "types": "./dist/index.d.ts",
88
- "gitHead": "b43359d803733b1a7c4638addcc270987fb894c3",
89
+ "gitHead": "51ac389603405e8f9f315ce49416153d95c5fefe",
89
90
  "cjser": {
90
- "sourceVersion": "4.0.7",
91
+ "sourceVersion": "4.1.0",
91
92
  "cjserVersion": 2,
92
93
  "original": {
93
94
  "name": "@inquirer/type",
94
- "version": "4.0.7",
95
+ "version": "4.1.0",
95
96
  "main": "./dist/index.js",
96
97
  "exports": {
97
98
  ".": {