
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
@types/inquirer-fuzzy-path
Advanced tools
TypeScript definitions for inquirer-fuzzy-path
npm install --save @types/inquirer-fuzzy-path
This package contains type definitions for inquirer-fuzzy-path (https://github.com/adelsz/inquirer-fuzzy-path).
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;
/**
* Provides the functionality to create a new Inquirer plugin
*/
declare class InquirerFuzzyPath<T extends Answers> extends InquirerAutocomplete<T> {
/**
* Create new InquirerFuzzyPath
*
* @param questions
* The questions to prompt
* @param rl
* The readline interface
* @param answers
* The currently supplied answers
*/
constructor(questions: QuestionCollection<T>, rl: ReadlineInterface, answers: Answers);
/**
* Curate list of choices.
*
* @param searchTerm
* The term to search for
*/
search(searchTerm: string): Promise<void>;
/**
* When user presses `enter` key
*
* @param line
* The input on the line.
*/
onSubmit(line: string): void;
}
/**
* Provides inquirer prompt options for type `InquirerFuzzyPath`.
*/
declare namespace InquirerFuzzyPath {
/**
* Provides options for a question of type `InquirerFuzzyPath`.
*
* @template T
* The type of the answers.
*/
interface FuzzyPathQuestionOptions<T extends Answers = Answers>
extends Partial<Omit<AutocompleteQuestionOptions<T>, "type">>
{
/**
* The key to save the answer to the answers-hash.
*/
type: "fuzzypath";
/**
* The key to save the answer to the answers-hash.
*/
name: KeyUnion<T>;
/**
* The root search directory, default to ".".
*/
rootPath?: string | undefined;
/**
* A function to exclude some paths from the file-system scan.
*/
excludePath?: ((path: string) => boolean) | undefined;
/**
* A function to exclude some paths from the final list.
*/
excludeFilter?: ((path: string) => boolean) | undefined;
/**
* A string to specify the type of nodes to display, default to "any".
*/
itemType?: "any" | "directory" | "file" | undefined;
/**
* An integer (>= 0) to limit the depth of sub-folders to scan,
* undefined means infinite.
*/
depthLimit?: number | undefined;
}
}
These definitions were written by 迷子 (Maiko Tan).
FAQs
TypeScript definitions for inquirer-fuzzy-path
The npm package @types/inquirer-fuzzy-path receives a total of 5,957 weekly downloads. As such, @types/inquirer-fuzzy-path popularity was classified as popular.
We found that @types/inquirer-fuzzy-path demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.