chore: patch clack type error
This commit is contained in:
@@ -66,5 +66,10 @@
|
|||||||
"branches": [
|
"branches": [
|
||||||
"main"
|
"main"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"pnpm": {
|
||||||
|
"patchedDependencies": {
|
||||||
|
"@clack/prompts@0.6.1": "patches/@clack__prompts@0.6.1.patch"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
patches/@clack__prompts@0.6.1.patch
Normal file
13
patches/@clack__prompts@0.6.1.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/dist/index.d.ts b/dist/index.d.ts
|
||||||
|
index 693d552f60c8e0dfef11480da22fb844065b18eb..f74db21d7709c9f6693a218cec2e424e4cf43c2d 100644
|
||||||
|
--- a/dist/index.d.ts
|
||||||
|
+++ b/dist/index.d.ts
|
||||||
|
@@ -36,7 +36,7 @@ interface SelectOptions<Options extends Option<Value>[], Value> {
|
||||||
|
options: Options;
|
||||||
|
initialValue?: Value;
|
||||||
|
}
|
||||||
|
-declare const select: <Options extends Option<Value>[], Value>(opts: SelectOptions<Options, Value>) => Promise<symbol | Value>;
|
||||||
|
+declare const select: <Options extends Option<Value>[], Value>(opts: SelectOptions<Options, Value>) => Promise<symbol | [...Options][number]['value']>;
|
||||||
|
declare const selectKey: <Options extends Option<Value>[], Value extends string>(opts: SelectOptions<Options, Value>) => Promise<symbol | Value>;
|
||||||
|
interface MultiSelectOptions<Options extends Option<Value>[], Value> {
|
||||||
|
message: string;
|
||||||
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
@@ -1,5 +1,10 @@
|
|||||||
lockfileVersion: 5.4
|
lockfileVersion: 5.4
|
||||||
|
|
||||||
|
patchedDependencies:
|
||||||
|
'@clack/prompts@0.6.1':
|
||||||
|
hash: seqcoud6rtee7vmn7zfu7zbwcy
|
||||||
|
path: patches/@clack__prompts@0.6.1.patch
|
||||||
|
|
||||||
specifiers:
|
specifiers:
|
||||||
'@clack/prompts': ^0.6.1
|
'@clack/prompts': ^0.6.1
|
||||||
'@dqbd/tiktoken': ^0.4.0
|
'@dqbd/tiktoken': ^0.4.0
|
||||||
@@ -22,7 +27,7 @@ dependencies:
|
|||||||
'@dqbd/tiktoken': 0.4.0
|
'@dqbd/tiktoken': 0.4.0
|
||||||
|
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@clack/prompts': 0.6.1
|
'@clack/prompts': 0.6.1_seqcoud6rtee7vmn7zfu7zbwcy
|
||||||
'@pvtnbr/eslint-config': 0.33.0_ycpbpc6yetojsgtrx3mwntkhsu
|
'@pvtnbr/eslint-config': 0.33.0_ycpbpc6yetojsgtrx3mwntkhsu
|
||||||
'@types/ini': 1.3.31
|
'@types/ini': 1.3.31
|
||||||
'@types/inquirer': 9.0.3
|
'@types/inquirer': 9.0.3
|
||||||
@@ -68,7 +73,7 @@ packages:
|
|||||||
sisteransi: 1.0.5
|
sisteransi: 1.0.5
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@clack/prompts/0.6.1:
|
/@clack/prompts/0.6.1_seqcoud6rtee7vmn7zfu7zbwcy:
|
||||||
resolution: {integrity: sha512-7KuMST/5zB7KpvfR00kcnbOaXmfN6tkJmkLpAyV2Iv2SJ7oxFbhNFvR5OQJynSKDhU8oOp/eFMK6Q0k/DXsq8A==}
|
resolution: {integrity: sha512-7KuMST/5zB7KpvfR00kcnbOaXmfN6tkJmkLpAyV2Iv2SJ7oxFbhNFvR5OQJynSKDhU8oOp/eFMK6Q0k/DXsq8A==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@clack/core': 0.3.0
|
'@clack/core': 0.3.0
|
||||||
@@ -77,6 +82,7 @@ packages:
|
|||||||
dev: true
|
dev: true
|
||||||
bundledDependencies:
|
bundledDependencies:
|
||||||
- is-unicode-supported
|
- is-unicode-supported
|
||||||
|
patched: true
|
||||||
|
|
||||||
/@dqbd/tiktoken/0.4.0:
|
/@dqbd/tiktoken/0.4.0:
|
||||||
resolution: {integrity: sha512-iaHgmwKAOqowBFZKxelyszoeGLoNw62eOULcmyme1aA1Ymr3JgYl0V7jwpuUm7fksalycZajx3loFn9TRUaviw==}
|
resolution: {integrity: sha512-iaHgmwKAOqowBFZKxelyszoeGLoNw62eOULcmyme1aA1Ymr3JgYl0V7jwpuUm7fksalycZajx3loFn9TRUaviw==}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default async (
|
|||||||
);
|
);
|
||||||
s.stop('Changes analyzed');
|
s.stop('Changes analyzed');
|
||||||
|
|
||||||
let message;
|
let message: string;
|
||||||
if (messages.length === 1) {
|
if (messages.length === 1) {
|
||||||
[message] = messages;
|
[message] = messages;
|
||||||
const confirmed = await confirm({
|
const confirmed = await confirm({
|
||||||
|
|||||||
Reference in New Issue
Block a user