anc95 / inquirer-file-tree-selection

inquirer prompt for select a file or dir by file tree
49 stars 26 forks source link

Error when trying to register a prompt #54

Closed kamack38 closed 2 years ago

kamack38 commented 2 years ago
inquirer.registerPrompt('file-tree-selection', inquirerFileTreeSelection)

When trying to register this prompt, I get a typescript error:

Argument of type 'typeof FileTreeSelectionPrompt' is not assignable to parameter of type 'PromptConstructor'.
  Type 'FileTreeSelectionPrompt' is missing the following properties from type 'PromptBase': status, run
ts(2345)
anc95 commented 2 years ago

Could you help yarn list @types/inquirer to check if there are multiple versions of @types/inquirer are installed

anc95 commented 2 years ago

Sorry for my careless, It did have error with TS. I just release v1.0.18, it should fix the type error.

kamack38 commented 2 years ago

Ok, thanks for a fast response. This issue is solved now.