File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import inquirer from "inquirer" ;
2
+
3
+ type Inquirer = typeof inquirer ;
4
+
2
5
// @types /globby doesn't export types for GlobOptions, so we have to work a little bit to extract them:
3
6
// GlobOptions is the second parameter of the sync function, which can be extracted with the Parameters<T> type
4
7
import { globbySync } from "globby" ;
5
-
6
8
type GlobOptions = Parameters < typeof globbySync > [ 1 ] ;
7
9
import { HelperDelegate as HelperFunction } from "handlebars" ;
8
10
@@ -139,7 +141,7 @@ export type PromptQuestion =
139
141
| inquirer . InputQuestion ;
140
142
141
143
export type DynamicPromptsFunction = (
142
- inquirer : inquirer . Inquirer
144
+ inquirer : Inquirer
143
145
) => Promise < inquirer . Answers > ;
144
146
export type DynamicActionsFunction = ( data ?: inquirer . Answers ) => ActionType [ ] ;
145
147
You can’t perform that action at this time.
0 commit comments