Installation
npm install --save @types/inquirer-fuzzy-path
Summary
This package contains type definitions for inquirer-fuzzy-path (https://github.com/adelsz/inquirer-fuzzy-path).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer-fuzzy-path.
import { Answers, KeyUnion, QuestionCollection } from "inquirer";
import { AutocompleteQuestionOptions } from "inquirer-autocomplete-prompt";
import InquirerAutocomplete = require("inquirer-autocomplete-prompt");
import { Interface as ReadlineInterface } from "readline";
export = InquirerFuzzyPath;
declare class InquirerFuzzyPath<T extends Answers> extends InquirerAutocomplete<T> {
constructor(questions: QuestionCollection<T>, rl: ReadlineInterface, answers: Answers);
search(searchTerm: string): Promise<void>;
onSubmit(line: string): void;
}
declare namespace InquirerFuzzyPath {
interface FuzzyPathQuestionOptions<T extends Answers = Answers>
extends Partial<Omit<AutocompleteQuestionOptions<T>, "type">>
{
type: "fuzzypath";
name: KeyUnion<T>;
rootPath?: string | undefined;
excludePath?: ((path: string) => boolean) | undefined;
excludeFilter?: ((path: string) => boolean) | undefined;
itemType?: "any" | "directory" | "file" | undefined;
depthLimit?: number | undefined;
}
}
Additional Details
Credits
These definitions were written by 迷子 (Maiko Tan).