@wocker/utils 1.0.5 → 1.0.6
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/lib/promptSelect.d.ts +1 -1
- package/package.json +1 -1
package/lib/promptSelect.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ type Options = {
|
|
|
10
10
|
default?: string[];
|
|
11
11
|
});
|
|
12
12
|
type ResultType<T extends Options> = T['multiple'] extends true ? string[] : string;
|
|
13
|
-
export declare const promptSelect: <T extends Options>(props: T) => Promise<
|
|
13
|
+
export declare const promptSelect: <R extends ResultType<T>, T extends Options = any>(props: T) => Promise<R>;
|
|
14
14
|
export { Options as PromptSelectOptions };
|